Skip to content

Commit fa13852

Browse files
committed
Workflow update
1 parent 65e5ced commit fa13852

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

.github/workflows/run-tests.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: ["3.11", "3.12", "3.13"]
10+
python-version: ["3.10", "3.11", "3.12", "3.13"]
1111

1212
steps:
1313
- uses: actions/checkout@v4
@@ -16,18 +16,11 @@ jobs:
1616
with:
1717
python-version: ${{ matrix.python-version }}
1818

19-
- name: Install dependencies
20-
run: python -m pip install -r requirements.txt
21-
2219
- name: Build and install package
2320
run: python -m pip install .
2421

22+
- name: Installing testing requirements
23+
run: python -m pip install pytest pytest-mypy pytest-flake8
24+
2525
- name: Test with pytest
26-
run: python -m pytest --junitxml=junit/test-results-${{ matrix.python-version }}.xml
27-
28-
- name: Upload pytest test results
29-
uses: actions/upload-artifact@v4
30-
with:
31-
name: pytest-results-${{ matrix.python-version }}
32-
path: junit/test-results-${{ matrix.python-version }}.xml
33-
if: ${{ always() }}
26+
run: python -m pytest --mypy --flake8

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,8 @@ source = "vcs"
3838

3939
[tool.hatch.build.hooks.vcs]
4040
version-file = "src/geocompy/_version.py"
41+
42+
[tool.pytest.ini_options]
43+
addopts = ["-ra"]
44+
testpaths = ["tests", "src", "examples"]
45+
required_plugins = ["pytest-mypy", "pytest-flake8"]

0 commit comments

Comments
 (0)