-
Notifications
You must be signed in to change notification settings - Fork 16
43 lines (41 loc) · 1.55 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
name: Main CI workflow
# Note: If the workflow name is changed, the CI badge URL in the README must also be updated
on:
push: # Push trigger runs on any pushed branch.
schedule: # Scheduled trigger runs on the latest commit on the default branch.
- cron: "0 22 * * *"
jobs:
ubuntu-setup:
name: Ubuntu setup
runs-on: ubuntu-latest
strategy:
matrix:
ubuntu-version: ["ubuntu:18.04", "ubuntu:20.04"]
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Setup on ${{matrix.ubuntu-version}}
run: |
docker run \
--volume $PWD:/host \
--workdir /host/continuous-integration \
--env "PYTHONDONTWRITEBYTECODE=1" \
${{matrix.ubuntu-version}} \
bash -c "./setup.sh"
ubuntu-setup-and-lint:
name: Ubuntu setup and lint
runs-on: ubuntu-latest
strategy:
matrix:
ubuntu-version: ["ubuntu:18.04"]
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Setup and lint on ${{matrix.ubuntu-version}}
run: |
docker run \
--volume $PWD:/host \
--workdir /host/continuous-integration \
--env "PYTHONDONTWRITEBYTECODE=1" \
${{matrix.ubuntu-version}} \
bash -c "./setup.sh && ./lint.sh"