Skip to content

Commit 429140f

Browse files
committed
fix dev tests
1 parent d8afe14 commit 429140f

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/test_dev.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3-
41
name: test_dev
52

63
on:
@@ -13,11 +10,16 @@ on:
1310
jobs:
1411
build:
1512

16-
runs-on: ubuntu-latest
13+
runs-on: ${{ matrix.os }}
1714
strategy:
1815
matrix:
19-
python-version: ["3.9", "3.10"]
20-
16+
# os: [ubuntu-latest, macos-latest, windows-latest]
17+
# python-version: ["3.9", "3.10"]
18+
os: [ ubuntu-latest ]
19+
python-version: [ "3.10" ]
20+
env:
21+
OS: ${{ matrix.os }}
22+
PYTHON: ${{ matrix.python-version }}
2123
steps:
2224
- uses: actions/checkout@v3
2325
- name: Set up Python ${{ matrix.python-version }}
@@ -28,7 +30,7 @@ jobs:
2830
run: |
2931
python -m pip install --upgrade pip
3032
pip install flake8 pytest pytest-cov coverage
31-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
33+
pip install -r requirements.txt
3234
- name: Lint with flake8
3335
run: |
3436
# stop the build if there are Python syntax errors or undefined names
@@ -37,4 +39,4 @@ jobs:
3739
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3840
- name: Test with pytest
3941
run: |
40-
python -m pytest --cov=PythonPackageTemplate --cov-report=xml --cov-report=html --junitxml=junit/test-results.xml
42+
pytest --cov=PythonPackageTemplate --cov-report=xml --cov-report=html --junitxml=junit/test-results.xml

0 commit comments

Comments
 (0)