-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 974 Bytes
/
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
name: "Python CI"
on:
push:
branches:
- main
pull_request:
jobs:
pre-commit:
uses: darbiadev/.github/.github/workflows/generic-precommit.yaml@9160d4ddd590c15fe8a1f6d1704bf8806969d2b6 # v4.0.1
lint:
needs: pre-commit
uses: darbiadev/.github/.github/workflows/python-lint.yaml@9160d4ddd590c15fe8a1f6d1704bf8806969d2b6 # v4.0.1
test:
needs: lint
strategy:
matrix:
os: [ ubuntu-latest ]
python-version: [ "3.11" ]
uses: darbiadev/.github/.github/workflows/python-test.yaml@9160d4ddd590c15fe8a1f6d1704bf8806969d2b6 # v4.0.1
with:
os: ${{ matrix.os }}
python-version: ${{ matrix.python-version }}
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@9160d4ddd590c15fe8a1f6d1704bf8806969d2b6 # v4.0.1