Skip to content

Merge pull request #184 from WEEE-Open/dependabot/pip/idna-3.7 #247

Merge pull request #184 from WEEE-Open/dependabot/pip/idna-3.7

Merge pull request #184 from WEEE-Open/dependabot/pip/idna-3.7 #247

Workflow file for this run

name: Python Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
run-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11' ]
steps:
- uses: actions/checkout@v2
- name: Set up Python version ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install dev dependencies
run: pip install -r requirements-dev.txt
- name: Install dataclasses on Python 3.6
run: pip install dataclasses
if: matrix.python-version == '3.6'
- name: Set up local development Tarallo instance
run: |
git clone https://github.com/weee-open/tarallo
cd tarallo || exit
make ci
make up
cd - &> /dev/null
- name: Create test .env file to access local Tarallo instance
run: |
echo "export TARALLO_URL=http://127.0.0.1:8080" >> .env
echo "export TARALLO_TOKEN=yoLeCHmEhNNseN0BlG0s3A:ksfPYziGg7ebj0goT0Zc7pbmQEIYvZpRTIkwuscAM_k" >> .env
# - name: Run tests
# uses: GabrielBB/xvfb-action@v1
# with:
# run: pytest -vv tests
- name: Run tests
run: pytest -vv tests -m "not gui"