Skip to content

Commit e97d578

Browse files
committed
Workflow update
1 parent dbcc854 commit e97d578

File tree

3 files changed

+29
-6
lines changed

3 files changed

+29
-6
lines changed

.github/workflows/run-tests.yml

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name: Automated testing
33
on: push
44

55
jobs:
6-
test:
6+
testing:
7+
name: Running tests
78
runs-on: ubuntu-latest
89
strategy:
910
fail-fast: false
@@ -22,5 +23,28 @@ jobs:
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/

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,3 @@ version-file = "src/geocompy/_version.py"
4242
[tool.pytest.ini_options]
4343
addopts = ["-ra"]
4444
testpaths = ["tests", "src", "examples"]
45-
required_plugins = ["pytest-mypy", "pytest-flake8"]

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pyserial
22
types-pyserial
33
pytest
4-
pytest-mypy
5-
pytest-flake8
4+
mypy
5+
flake8

0 commit comments

Comments
 (0)