-
-
Notifications
You must be signed in to change notification settings - Fork 24
34 lines (29 loc) · 994 Bytes
/
DevWorkflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: DevelopmentTests
on: [pull_request]
jobs:
unittest:
# needs: linting
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
container: [ 'qgis/qgis:latest', 'qgis/qgis:3.34.7']
container:
image: ${{ matrix.container }}
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
python3 -m venv /tmp/venv_test --system-site-package
. /tmp/venv_test/bin/activate
python3 -m pip install setuptools
python3 -m pip install -r test/requirements-test.txt
python3 ./ci/dependency_installation.py
export PYTHONPATH=$(pwd)/qaequilibrae/packages:$PYTHONPATH
echo "PYTHONPATH=$PYTHONPATH" >> $GITHUB_ENV
- name: Run tests
run: |
. /tmp/venv_test/bin/activate
export QT_QPA_PLATFORM=offscreen
pwd
python3 -m pytest --cov-config=.coveragerc --cov-report term-missing --cov=qaequilibrae test