Skip to content

Commit

Permalink
✅ collapse test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
Wytamma committed Apr 22, 2024
1 parent cb75f5d commit 1ec6839
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,9 @@ jobs:
- run: pip install hatch
- run: sudo apt-get update && sudo apt-get install -y llvm
- run: sudo apt-get -y install graphviz
- name: Run v7 tests
- name: Run tests
shell: bash
run: hatch run +py=3.11 v7:cov
- name: Run v8 tests
shell: bash
run: hatch run +py=3.11 v8:cov
run: hatch run snakemake:cov
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3

Expand Down
17 changes: 3 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,10 @@ Source = "https://github.com/unknown/snk-cli"
path = "src/snk_cli/__about__.py"


[[tool.hatch.envs.v7.matrix]]
python = ["3.9", "3.10", "3.11", "3.12"]
snakemake = ["7.32.4"]

[tool.hatch.v7.test]
dependencies = [
"coverage[toml]>=6.5",
"pytest",
"snakemake=={matrix:snakemake}"]

[[tool.hatch.envs.v8.matrix]]
python = ["3.11", "3.12"]
snakemake = ["8.10.8"]
[[tool.hatch.envs.snakemake.matrix]]
snakemake = ["7.32.4", "8.10.8"]

[tool.hatch.v8.test]
[tool.hatch.snakemake.test]
dependencies = [
"coverage[toml]>=6.5",
"pytest",
Expand Down

0 comments on commit 1ec6839

Please sign in to comment.