File tree Expand file tree Collapse file tree 3 files changed +29
-6
lines changed
Expand file tree Collapse file tree 3 files changed +29
-6
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ name: Automated testing
33on : push
44
55jobs :
6- test :
6+ testing :
7+ name : Running tests
78 runs-on : ubuntu-latest
89 strategy :
910 fail-fast : false
2223
2324 - name : Test with pytest
2425 run : |
25- python -m pip install -r requirements.txt
26- python -m pytest --mypy --flake8
26+ python -m pip install pytest
27+ python -m pytest
28+
29+ linting :
30+ name : Linting
31+ runs-on : ubuntu-latest
32+ strategy :
33+ fail-fast : false
34+ matrix :
35+ tool : ["flake8", "mypy"]
36+
37+ steps :
38+ - uses : actions/checkout@v4
39+ - name : Setup Python
40+ uses : actions/setup-python@v5
41+ with :
42+ python-version : 3.x
43+
44+ - name : Build and install package
45+ run : python -m pip install .
46+
47+ - name : Running ${{ matrix.tool }}
48+ run : |
49+ python -m pip install ${{ matrix.tool }}
50+ python -m ${{ matrix.tool }} src/ tests/ examples/
Original file line number Diff line number Diff line change @@ -42,4 +42,3 @@ version-file = "src/geocompy/_version.py"
4242[tool .pytest .ini_options ]
4343addopts = [" -ra" ]
4444testpaths = [" tests" , " src" , " examples" ]
45- required_plugins = [" pytest-mypy" , " pytest-flake8" ]
Original file line number Diff line number Diff line change 11pyserial
22types-pyserial
33pytest
4- pytest- mypy
5- pytest- flake8
4+ mypy
5+ flake8
You can’t perform that action at this time.
0 commit comments