-
-
Notifications
You must be signed in to change notification settings - Fork 196
67 lines (60 loc) · 1.59 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: ci
on:
pull_request:
push:
branches-ignore:
- 'dependabot/**'
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
uses: mhils/workflows/.github/workflows/python-tox.yml@main
with:
cmd: tox -e lint -- -v ${{ matrix.args }}
test:
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
py: 3.12.0-rc.1 - 3.12.0
args: --cov-fail-under=100
- os: macos-latest
py: 3.12.0-rc.1 - 3.12.0
args: --cov-fail-under=100
- os: ubuntu-latest
py: 3.12.0-rc.1 - 3.12.0
args: --cov-fail-under=100
- os: ubuntu-latest
py: 3.11.5
- os: ubuntu-latest
py: 3.10.13
- os: ubuntu-latest
py: 3.9.18
- os: ubuntu-latest
py: 3.8.18
uses: mhils/workflows/.github/workflows/python-tox.yml@main
with:
cmd: tox -e py -- -vvv ${{ matrix.args }}
os: ${{ matrix.os }}
python-version: ${{ matrix.py }}
build:
uses: mhils/workflows/.github/workflows/python-build.yml@main
check:
if: always()
needs:
- lint
- test
- build
uses: mhils/workflows/.github/workflows/alls-green.yml@main
with:
jobs: ${{ toJSON(needs) }}
deploy:
uses: mhils/workflows/.github/workflows/python-deploy.yml@main
needs: check
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
secrets:
password: ${{ secrets.TWINE_PASSWORD }}