-
Notifications
You must be signed in to change notification settings - Fork 17
81 lines (74 loc) · 1.89 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Continuous integration
on:
# Trigger the workflow on push or pull request,
push:
pull_request:
# Trigger the workflow via a manual run
workflow_dispatch:
# Ensures that only one deploy task per branch/environment will run at a time.
concurrency:
group: environment-${{ github.ref }}
cancel-in-progress: true
jobs:
install:
name: Install dependencies
runs-on: ubuntu-24.04
timeout-minutes: 1
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/actions/install
unit-test:
name: Run unit test
runs-on: ubuntu-24.04
timeout-minutes: 1
needs: [install]
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/actions/install
- name: Run tests
run: make test
lint:
name: Lint with Pylint
runs-on: ubuntu-24.04
timeout-minutes: 1
needs: [install]
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/actions/install
- name: Lint with Pylint
run: make pylint
build:
runs-on: ubuntu-24.04
needs: [install]
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/actions/install
- name: Build pdoc
id: build
run: make pdoc
- name: Upload pdoc
id: deploy
uses: actions/[email protected]
with:
path: docs
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}/pdoc
runs-on: ubuntu-24.04
needs: build
steps:
- name: Deploy to GitHub Pages
id: deploy
uses: actions/[email protected]
permissions:
id-token: write
pages: write