Skip to content

Commit 7555416

Browse files
authored
ci: run tox reusable workflow for ci and publish (#8)
1 parent e21842c commit 7555416

File tree

3 files changed

+26
-15
lines changed

3 files changed

+26
-15
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,11 @@ on:
77
- main
88

99
jobs:
10-
tox-package:
11-
if: ${{ github.event_name == 'pull_request' }}
12-
uses: coatl-dev/workflows/.github/workflows/tox-docker.yml@v6
13-
14-
tox-stubs:
15-
if: ${{ github.event_name == 'pull_request' }}
16-
uses: coatl-dev/workflows/.github/workflows/tox.yml@v6
17-
with:
18-
python-versions: |
19-
3.9
20-
3.10
21-
3.11
22-
3.12
23-
working-directory: stubs
24-
2510
pylint:
2611
uses: coatl-dev/workflows/.github/workflows/pylint.yml@v6
2712
with:
2813
path: src
14+
15+
tox:
16+
if: ${{ github.event_name == 'pull_request' }}
17+
uses: ./.github/workflows/tox.yml

.github/workflows/publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ on:
66
- published
77

88
jobs:
9+
tox:
10+
uses: ./.github/workflows/tox.yml
11+
912
pypi-upload:
13+
needs: tox
1014
runs-on: ubuntu-latest
1115
steps:
1216
- name: Checkout repo

.github/workflows/tox.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: tox
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
tox-package:
8+
uses: coatl-dev/workflows/.github/workflows/tox-docker.yml@v6
9+
10+
tox-stubs:
11+
uses: coatl-dev/workflows/.github/workflows/tox.yml@v6
12+
with:
13+
python-versions: |
14+
3.9
15+
3.10
16+
3.11
17+
3.12
18+
working-directory: stubs

0 commit comments

Comments
 (0)