Skip to content

Commit

Permalink
tests: test against minimum versions of dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ap-- committed Sep 24, 2023
1 parent d7d3817 commit e1e9945
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ jobs:
os: [ubuntu-20.04, windows-latest, macos-latest]
pyv: ['3.8', '3.9', '3.10', '3.11']

include:
- os: ubuntu-20.04
pyv: '3.8'
fsspec: 'minversion'

steps:
- name: Check out the repository
uses: actions/checkout@v3
Expand All @@ -41,7 +46,7 @@ jobs:
nox --version
- name: Run tests
run: nox -s tests-${{ matrix.nox_pyv || matrix.pyv }} -- --cov-report=xml
run: nox -s tests-${{ matrix.fsspec || matrix.pyv }} -- --cov-report=xml

lint:
runs-on: ubuntu-latest
Expand Down
14 changes: 14 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,20 @@ def tests(session: nox.Session) -> None:
)


@nox.session(python="3.8", name="tests-minversion")
def tests_minversion(session: nox.Session) -> None:
session.install("fsspec==2022.1.0", ".[dev]")
session.run(
"pytest",
"-m",
"not hdfs",
"--cov",
"--cov-config=pyproject.toml",
*session.posargs,
env={"COVERAGE_FILE": f".coverage.{session.python}"},
)


@nox.session
def lint(session: nox.Session) -> None:
session.install("pre-commit")
Expand Down

0 comments on commit e1e9945

Please sign in to comment.