Skip to content

Commit

Permalink
Merge pull request #53 from nicoddemus/run-tests-ci
Browse files Browse the repository at this point in the history
Run tests in CI
  • Loading branch information
nicoddemus committed Jan 7, 2023
2 parents 6fe9a72 + 41e5fff commit 18f0e6d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install tox
run: python -m pip install --upgrade pip setuptools_scm hatch hatch-vcs
- name: install package local
run: pip install --no-build-isolation .
- name: Install hatch
run: python -m pip install --upgrade pip hatch hatch-vcs
- name: Run tests
run: hatch run +py=${{ matrix.python }} test:default --color=yes

pre-commit:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ dependencies = [
"pytest"
]
[tool.hatch.envs.test.scripts]
default = "pytest"
default = "pytest {args}"

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

0 comments on commit 18f0e6d

Please sign in to comment.