Skip to content

Commit 193d59c

Browse files
committed
Updated testing action
1 parent 3af7a3a commit 193d59c

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

.github/workflows/run-tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ jobs:
2727

2828
- name: Test with pytest
2929
run: |
30-
python -m pip install -r requirements.txt
30+
python -m pip install --upgrade pip
31+
python -m pip install --group testing
3132
python -m pytest
3233
3334
linting:
@@ -50,6 +51,7 @@ jobs:
5051

5152
- name: Running ${{ matrix.tool }}
5253
run: |
53-
python -m pip install -r requirements.txt
54+
python -m pip install --upgrade pip
55+
python -m pip install --group linting
5456
python -c "print('=========== ${{ matrix.tool }} ===========')"
5557
python -m ${{ matrix.tool }} src/ tests/ examples/

pyproject.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,28 @@ keywords = ["GeoCom", "surveying", "tps1200", "viva"]
3232
Homepage = "https://github.com/MrClock8163/geocompy"
3333
Issues = "https://github.com/MrClock8163/geocompy/issues"
3434

35+
[dependency-groups]
36+
testing = [
37+
"pytest",
38+
"pytest-mock",
39+
]
40+
linting = [
41+
"types-pyserial",
42+
"mypy",
43+
"flake8"
44+
]
45+
development = [
46+
"pyserial",
47+
{include-group = "testing"},
48+
{include-group = "linting"}
49+
]
50+
documentation = [
51+
"sphinx==8.2.3",
52+
"sphinx-notfound-page==1.1.0",
53+
"sphinx-last-updated-by-git==0.3.8",
54+
"sphinx-immaterial==0.13.5",
55+
]
56+
3557
[tool.hatch.version]
3658
source = "vcs"
3759

0 commit comments

Comments
 (0)