-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 1.02 KB
/
python-ci.yaml
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
name: "Python CI"
on:
push:
branches:
- main
pull_request:
jobs:
pre-commit:
uses: darbiadev/.github/.github/workflows/generic-precommit.yaml@12e07d61ed37c908baa73f8d5550281b3ed9cddd # v13.1.2
lint:
needs: pre-commit
uses: darbiadev/.github/.github/workflows/python-lint.yaml@12e07d61ed37c908baa73f8d5550281b3ed9cddd # v13.1.2
test:
needs: lint
strategy:
matrix:
os: [ ubuntu-latest ]
python-version: [ "3.12" ]
uses: darbiadev/.github/.github/workflows/python-test.yaml@12e07d61ed37c908baa73f8d5550281b3ed9cddd # v13.1.2
with:
os: ${{ matrix.os }}
python-version: ${{ matrix.python-version }}
secrets:
codecov-token: ${{ secrets.CODECOV_TOKEN }}
docs:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
uses: darbiadev/.github/.github/workflows/github-pages-python-sphinx.yaml@12e07d61ed37c908baa73f8d5550281b3ed9cddd # v13.1.2