Repository navigation
67 lines (59 loc) · 1.91 KB
/
Copy pathnix.yml
File metadata and controls
67 lines (59 loc) · 1.91 KB
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
name: Test Nix
on: # yamllint disable-line rule:truthy
# On PRs, called by ci.yml when needed (see nix: true in utils/scripts/libraries_and_scenarios_rules.yml):
# a workflow skipped by a paths filter leaves its required checks pending forever
workflow_call: {}
workflow_dispatch: {}
schedule:
- cron: "00 04 * * 0-6"
# Default permissions for all jobs
permissions: {}
jobs:
test:
strategy:
fail-fast: false
matrix:
platform:
- os: darwin
cpu: arm64
base: macos-15 # always arm64-darwin
- os: linux
cpu: x86_64
base: ubuntu-24.04 # always x86_64-linux-gnu
- os: linux
cpu: aarch64
base: ubuntu-24.04-arm # always aarch64-linux-gnu
name: Test Nix (${{ matrix.platform.cpu }}-${{ matrix.platform.os }})
runs-on: ${{ matrix.platform.base }}
permissions:
contents: read
id-token: write
env:
SKIP_SIMPLECOV: 1
DD_INSTRUMENTATION_TELEMETRY_ENABLED: false
DD_REMOTE_CONFIGURATION_ENABLED: false
steps:
- name: Check CPU arch
run: |
test "$(uname -m)" = "${{ matrix.platform.cpu }}"
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: cachix/install-nix-action@630ae543ea3a38a9a4166f03376c02c50f408342 # v31.11.0
- name: Print python version
run: |
nix develop --command which python
nix develop --command python --version
- name: Build runner
run: nix develop --command ./build.sh -i runner
- name: Test the test
# no `docker` to actually run tests
if: ${{ matrix.platform.os != 'darwin' }}
run: nix develop --command ./run.sh TEST_THE_TEST
complete:
name: Nix (complete)
runs-on: ubuntu-24.04
needs:
- test
steps:
- run: echo "DONE!"