Skip to content

Commit fd24e5f

Browse files
committed
chore: tweak ci
1 parent 49592d7 commit fd24e5f

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,16 @@ jobs:
6262
run: pipx install algokit && algokit localnet start
6363

6464
- name: Run tests with Python ${{ matrix.python-version }}
65-
run: hatch run test:ci
65+
run: hatch run test.py${{ matrix.python-version }}:ci
6666

6767
- name: Run examples tests with Python ${{ matrix.python-version }}
68-
run: hatch run examples:tests
68+
run: hatch run examples.py${{ matrix.python-version }}:tests
69+
70+
- name: Upload coverage artifacts
71+
uses: actions/upload-artifact@v4
72+
if: ${{ matrix.python-version == '3.13' }}
73+
with:
74+
name: coverage-reports
75+
path: |
76+
./coverage.xml
77+
retention-days: 14

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ allow-direct-references = true
4444
[tool.hatch.build.targets.wheel]
4545
packages = ["src/algopy", 'src/algopy_testing', 'src/_algopy_testing']
4646

47-
[[tool.hatch.envs.all.matrix]]
48-
python = ["3.12", "3.13"]
49-
5047
# default dev environment
5148
[tool.hatch.envs.default]
5249
type = "virtual"
@@ -122,6 +119,7 @@ path = ".venv.cicd"
122119
dependencies = [
123120
"python-semantic-release>=9.8.5",
124121
]
122+
125123
[tool.hatch.envs.cicd.scripts]
126124
clean_dist = "rm -rf dist"
127125

@@ -179,7 +177,6 @@ dev = "hatch run docs:test && sphinx-autobuild docs docs/_build"
179177
[tool.hatch.envs.examples]
180178
type = "virtual"
181179
path = ".venv.examples"
182-
python = "3.12"
183180
dev-mode = true
184181
skip-install = false
185182
post-install-commands = [
@@ -208,6 +205,9 @@ check = [
208205
"hatch run mypy examples",
209206
]
210207

208+
[[tool.hatch.envs.examples.matrix]]
209+
python = ["3.12", "3.13"]
210+
211211
# tool configurations
212212
[tool.black]
213213
line-length = 99

0 commit comments

Comments
 (0)