File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 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
-
4
1
name : test_dev
5
2
6
3
on :
13
10
jobs :
14
11
build :
15
12
16
- runs-on : ubuntu-latest
13
+ runs-on : ${{ matrix.os }}
17
14
strategy :
18
15
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 }}
21
23
steps :
22
24
- uses : actions/checkout@v3
23
25
- name : Set up Python ${{ matrix.python-version }}
28
30
run : |
29
31
python -m pip install --upgrade pip
30
32
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
32
34
- name : Lint with flake8
33
35
run : |
34
36
# stop the build if there are Python syntax errors or undefined names
37
39
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
38
40
- name : Test with pytest
39
41
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
You can’t perform that action at this time.
0 commit comments