-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (40 loc) · 944 Bytes
/
ci.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
name: CI
on:
push:
pull_request:
jobs:
check:
uses: ./.github/workflows/_check.yml
lint:
needs: check
if: needs.check.outputs.branch-pr == ''
uses: ./.github/workflows/_tox.yml
with:
tox: pre-commit
test:
needs: check
if: needs.check.outputs.branch-pr == ''
uses: ./.github/workflows/_test.yml
with:
python-version: dev
runs-on: ubuntu-latest
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
docs:
needs: check
if: needs.check.outputs.branch-pr == ''
uses: ./.github/workflows/_docs.yml
permissions:
contents: write
example:
needs: test
if: github.ref_name == 'main'
uses: ./.github/workflows/_example.yml
secrets:
EXAMPLE_DEPLOY_KEY: ${{ secrets.EXAMPLE_DEPLOY_KEY }}
release:
if: github.ref_type == 'tag'
needs: docs
uses: ./.github/workflows/_release.yml
permissions:
contents: write