2022-02-07 18:54:31 +01:00
|
|
|
name: Test Linux
|
2020-03-23 19:41:05 +01:00
|
|
|
|
2020-07-21 20:44:30 +02:00
|
|
|
on:
|
|
|
|
pull_request:
|
2021-10-22 20:02:50 +02:00
|
|
|
paths-ignore:
|
2022-02-07 18:54:31 +01:00
|
|
|
- README.md
|
2021-11-27 02:18:37 +01:00
|
|
|
- .github/**
|
|
|
|
- '!.github/workflows/test-linux.yml'
|
2021-07-16 08:24:23 +02:00
|
|
|
types: [opened, synchronize, reopened, ready_for_review]
|
2020-07-21 20:44:30 +02:00
|
|
|
push:
|
|
|
|
branches:
|
2021-05-03 10:59:10 +02:00
|
|
|
- main
|
2020-08-05 15:46:22 +02:00
|
|
|
- canary
|
2020-08-06 18:31:17 +02:00
|
|
|
- v[0-9]+.x-staging
|
|
|
|
- v[0-9]+.x
|
2021-10-22 20:02:50 +02:00
|
|
|
paths-ignore:
|
2022-02-07 18:54:31 +01:00
|
|
|
- README.md
|
2021-11-27 02:18:37 +01:00
|
|
|
- .github/**
|
|
|
|
- '!.github/workflows/test-linux.yml'
|
2020-03-23 19:41:05 +01:00
|
|
|
|
2022-02-18 16:46:12 +01:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2020-03-23 19:41:05 +01:00
|
|
|
env:
|
2024-04-03 08:24:57 +02:00
|
|
|
PYTHON_VERSION: '3.12'
|
2022-07-25 14:01:41 +02:00
|
|
|
FLAKY_TESTS: keep_retrying
|
2024-06-10 11:38:47 +02:00
|
|
|
CC: sccache clang
|
|
|
|
CXX: sccache clang++
|
|
|
|
SCCACHE_GHA_ENABLED: 'true'
|
2020-03-23 19:41:05 +01:00
|
|
|
|
2022-07-12 23:50:46 +02:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2020-03-23 19:41:05 +01:00
|
|
|
jobs:
|
|
|
|
test-linux:
|
2020-11-01 09:18:08 +01:00
|
|
|
if: github.event.pull_request.draft == false
|
2024-06-10 11:38:47 +02:00
|
|
|
runs-on: ubuntu-24.04
|
2020-03-23 19:41:05 +01:00
|
|
|
steps:
|
2024-11-03 20:03:33 +01:00
|
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
2021-11-27 23:12:26 +01:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
2020-03-23 19:41:05 +01:00
|
|
|
- name: Set up Python ${{ env.PYTHON_VERSION }}
|
2024-11-03 20:07:53 +01:00
|
|
|
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
|
2020-03-23 19:41:05 +01:00
|
|
|
with:
|
2020-04-02 05:06:51 +02:00
|
|
|
python-version: ${{ env.PYTHON_VERSION }}
|
2024-05-06 09:59:17 +02:00
|
|
|
- name: Set up sccache
|
2024-10-04 20:33:37 +02:00
|
|
|
uses: mozilla-actions/sccache-action@9e326ebed976843c9932b3aa0e021c6f50310eb4 # v0.0.6
|
2024-05-06 09:59:17 +02:00
|
|
|
with:
|
2024-09-04 16:39:41 +02:00
|
|
|
version: v0.8.1
|
2020-03-23 19:41:05 +01:00
|
|
|
- name: Environment Information
|
|
|
|
run: npx envinfo
|
|
|
|
- name: Build
|
2024-01-25 20:17:28 +01:00
|
|
|
run: make build-ci -j4 V=1 CONFIG_FLAGS="--error-on-warn"
|
2020-03-23 19:41:05 +01:00
|
|
|
- name: Test
|
2024-01-25 20:17:28 +01:00
|
|
|
run: make run-ci -j4 V=1 TEST_CI_ARGS="-p actions --node-args='--test-reporter=spec' --node-args='--test-reporter-destination=stdout' --measure-flakiness 9"
|