-
Notifications
You must be signed in to change notification settings - Fork 17
50 lines (45 loc) · 1.18 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
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