Skip to content

Commit 41e5fff

Browse files
committed
Run tests in CI
The current setup was not actually running the tests, only installing the package.
1 parent 6fe9a72 commit 41e5fff

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
uses: actions/setup-python@v4
2020
with:
2121
python-version: ${{ matrix.python }}
22-
- name: Install tox
23-
run: python -m pip install --upgrade pip setuptools_scm hatch hatch-vcs
24-
- name: install package local
25-
run: pip install --no-build-isolation .
22+
- name: Install hatch
23+
run: python -m pip install --upgrade pip hatch hatch-vcs
24+
- name: Run tests
25+
run: hatch run +py=${{ matrix.python }} test:default --color=yes
2626

2727
pre-commit:
2828
runs-on: ubuntu-latest

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ dependencies = [
5555
"pytest"
5656
]
5757
[tool.hatch.envs.test.scripts]
58-
default = "pytest"
58+
default = "pytest {args}"
5959

6060
[[tool.hatch.envs.test.matrix]]
6161
python = ["3.7", "3.8", "3.9", "3.10", "3.11"]

0 commit comments

Comments
 (0)