Skip to content

Commit 497635b

Browse files
committed
move github actions to hatch
1 parent 0e714fe commit 497635b

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

.github/workflows/check.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
tox-environment:
16-
- docs
17-
- linter
18-
- pkglint
19-
- spelling
20-
- isolated
15+
hatch-environment:
16+
- docs:build
17+
- test:linter
18+
- test:pkglint
19+
- docs:spelling
2120

2221
steps:
2322
- uses: actions/checkout@v4
@@ -30,7 +29,7 @@ jobs:
3029
python-version: '3.x'
3130

3231
- name: Install dependencies
33-
run: python -m pip install tox
32+
run: python -m pip install hatch
3433

3534
- name: Run
36-
run: tox -e ${{ matrix.tox-environment }}
35+
run: hatch run ${{ matrix.hatch-environment }}

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
python-version: ${{ matrix.python-version }}
2929

3030
- name: Install dependencies
31-
run: python -m pip install tox
31+
run: python -m pip install hatch
3232

3333
- name: Run tests
34-
run: tox -e py
34+
run: hatch run test:test

.mergify.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@ pull_request_rules:
2424
- name: Automatic merge on approval
2525
conditions:
2626
- and:
27-
- "check-success=build (docs)"
28-
- "check-success=build (isolated)"
29-
- "check-success=build (linter)"
30-
- "check-success=build (spelling)"
27+
- "check-success=build (docs:build)"
28+
- "check-success=build (test:linter)"
29+
- "check-success=build (docs:spelling)"
3130
- "check-success=django"
3231
- "check-success=build (3.10)"
3332
- "check-success=build (3.11)"

0 commit comments

Comments
 (0)