Samples: Automatic updates to public repository #1347
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: ["20.04", "22.04"] | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Setup on Ubuntu ${{matrix.ubuntu-version}} | |
run: | | |
docker run \ | |
--volume $PWD:/host \ | |
--workdir /host/continuous-integration \ | |
--env "PYTHONDONTWRITEBYTECODE=1" \ | |
ubuntu:${{matrix.ubuntu-version}} \ | |
bash -c "./setup.sh" | |
ubuntu-setup-and-lint: | |
name: Ubuntu setup and lint | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ubuntu-version: ["20.04"] | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Setup and lint on Ubuntu ${{matrix.ubuntu-version}} | |
run: | | |
docker run \ | |
--volume $PWD:/host \ | |
--workdir /host/continuous-integration \ | |
--env "PYTHONDONTWRITEBYTECODE=1" \ | |
ubuntu:${{matrix.ubuntu-version}} \ | |
bash -c "./setup.sh && ./lint.sh" |