Skip to content

Commit

Permalink
build: use nox in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
martibosch committed Jul 5, 2024
1 parent c51cb7f commit 68702b0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 42 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,10 @@ jobs:
pip
- name: install dependencies
run: pip install tox tox-gh-actions
run: pip install pdm nox

- name: test with tox
run: tox
env:
CONDA_EXE: mamba
- name: test with nox
run: nox

- name: upload coverage reports to Codecov
uses: codecov/codecov-action@v3
Expand Down
3 changes: 2 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,13 @@ def wheel(session):
session.run("twine", "check", "dist/*")


@nox.session
@nox.session(venv_backend="mamba|micromamba|conda")
def test(session):
"""Run the test in a Nox environment."""
command = "pdm sync --clean --prod -G test --no-self"
session.run_install(*command.split(), external=True)

session.conda_install("gdal>=3.3", channel=["conda-forge"])
session.install(".", "--no-deps", external=True)

session.run(
Expand Down
36 changes: 0 additions & 36 deletions tox.ini

This file was deleted.

0 comments on commit 68702b0

Please sign in to comment.