|
1 |
| -# name: Downgrade |
| 1 | +name: Downgrade |
2 | 2 |
|
3 |
| -# on: |
4 |
| -# pull_request: |
5 |
| -# branches: |
6 |
| -# - main |
7 |
| -# paths: |
8 |
| -# - '.github/workflows/downgrade.yml' |
9 |
| -# - 'ext/**' |
10 |
| -# - 'lib/**' |
11 |
| -# - 'src/**' |
12 |
| -# - 'Project.toml' |
13 |
| -# push: |
14 |
| -# branches: |
15 |
| -# - main |
16 |
| -# paths: |
17 |
| -# - '.github/workflows/downgrade.yml' |
18 |
| -# - 'ext/**' |
19 |
| -# - 'lib/**' |
20 |
| -# - 'src/**' |
21 |
| -# - 'Project.toml' |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + branches: |
| 6 | + - main |
| 7 | + paths: |
| 8 | + - '.github/workflows/downgrade.yml' |
| 9 | + - 'ext/**' |
| 10 | + - 'lib/**' |
| 11 | + - 'src/**' |
| 12 | + - 'Project.toml' |
| 13 | + push: |
| 14 | + branches: |
| 15 | + - main |
| 16 | + paths: |
| 17 | + - '.github/workflows/downgrade.yml' |
| 18 | + - 'ext/**' |
| 19 | + - 'lib/**' |
| 20 | + - 'src/**' |
| 21 | + - 'Project.toml' |
22 | 22 |
|
23 |
| -# concurrency: |
24 |
| -# # Skip intermediate builds: always. |
25 |
| -# # Cancel intermediate builds: only if it is a pull request build. |
26 |
| -# group: ${{ github.workflow }}-${{ github.ref }} |
27 |
| -# cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} |
| 23 | +concurrency: |
| 24 | + # Skip intermediate builds: always. |
| 25 | + # Cancel intermediate builds: only if it is a pull request build. |
| 26 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 27 | + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} |
28 | 28 |
|
29 |
| -# jobs: |
30 |
| -# downgrade: |
31 |
| -# # if: ${{ !contains(github.event.head_commit.message, '[skip tests]') && github.base_ref == github.event.repository.default_branch }} |
32 |
| -# timeout-minutes: 90 |
33 |
| -# runs-on: ubuntu-latest |
34 |
| -# strategy: |
35 |
| -# fail-fast: false |
36 |
| -# matrix: |
37 |
| -# test_group: |
38 |
| -# - core |
39 |
| -# - neural_networks |
40 |
| -# - integration |
41 |
| -# runtime: |
42 |
| -# - PJRT |
43 |
| -# - IFRT |
44 |
| -# env: |
45 |
| -# TMPDIR: ${{ github.workspace }}/tmp |
46 |
| -# steps: |
47 |
| -# - uses: actions/checkout@v4 |
48 |
| -# - name: Create TMPDIR |
49 |
| -# run: | |
50 |
| -# mkdir -p ${{ env.TMPDIR }} |
51 |
| -# - uses: julia-actions/setup-julia@v2 |
52 |
| -# with: |
53 |
| -# version: "1.10" |
54 |
| -# - uses: julia-actions/cache@v2 |
55 |
| -# - uses: julia-actions/julia-downgrade-compat@v2 |
56 |
| -# with: |
57 |
| -# skip: "ReactantCore" |
58 |
| -# - name: "Setup Runtime Preferences" |
59 |
| -# uses: "DamianReeves/write-file-action@master" |
60 |
| -# with: |
61 |
| -# path: "LocalPreferences.toml" |
62 |
| -# write-mode: "overwrite" |
63 |
| -# contents: | |
64 |
| -# [Reactant] |
65 |
| -# xla_runtime = "${{ matrix.runtime }}" |
66 |
| -# - name: "Install Dependencies and Run Tests" |
67 |
| -# run: | |
68 |
| -# import Pkg |
69 |
| -# Pkg.Registry.update() |
70 |
| -# # Install packages present in subdirectories |
71 |
| -# dev_pks = Pkg.PackageSpec[] |
72 |
| -# for path in ("lib/ReactantCore",) |
73 |
| -# push!(dev_pks, Pkg.PackageSpec(; path)) |
74 |
| -# end |
75 |
| -# Pkg.develop(dev_pks) |
76 |
| -# Pkg.test(; coverage="user") |
77 |
| -# shell: julia --color=yes --code-coverage=user --depwarn=yes --project=. {0} |
78 |
| -# id: run_tests |
79 |
| -# env: |
80 |
| -# JULIA_PKG_SERVER_REGISTRY_PREFERENCE: eager |
81 |
| -# REACTANT_TEST_GROUP: ${{ matrix.test_group }} |
82 |
| -# XLA_FLAGS: "--xla_force_host_platform_device_count=12" |
83 |
| -# JULIA_DEBUG: "Reactant,Reactant_jll" |
84 |
| -# - name: Upload MLIR modules |
85 |
| -# uses: actions/upload-artifact@v4 |
86 |
| -# timeout-minutes: 10 |
87 |
| -# if: ${{ always() }} |
88 |
| -# with: |
89 |
| -# name: "mlir-downgrade-${{ matrix.test_group }}-${{ matrix.runtime }}-${{ github.event_name }}" |
90 |
| -# path: "**/*.mlir" |
91 |
| -# retention-days: 90 |
92 |
| -# overwrite: false |
93 |
| -# - uses: julia-actions/julia-processcoverage@v1 |
94 |
| -# - uses: codecov/codecov-action@v5 |
95 |
| -# with: |
96 |
| -# files: lcov.info |
| 29 | +jobs: |
| 30 | + downgrade: |
| 31 | + # if: ${{ !contains(github.event.head_commit.message, '[skip tests]') && github.base_ref == github.event.repository.default_branch }} |
| 32 | + timeout-minutes: 90 |
| 33 | + runs-on: ubuntu-latest |
| 34 | + strategy: |
| 35 | + fail-fast: false |
| 36 | + matrix: |
| 37 | + test_group: |
| 38 | + - core |
| 39 | + - neural_networks |
| 40 | + - integration |
| 41 | + runtime: |
| 42 | + - PJRT |
| 43 | + - IFRT |
| 44 | + env: |
| 45 | + TMPDIR: ${{ github.workspace }}/tmp |
| 46 | + steps: |
| 47 | + - uses: actions/checkout@v4 |
| 48 | + - name: Create TMPDIR |
| 49 | + run: | |
| 50 | + mkdir -p ${{ env.TMPDIR }} |
| 51 | + - uses: julia-actions/setup-julia@v2 |
| 52 | + with: |
| 53 | + version: "1.10" |
| 54 | + - uses: julia-actions/cache@v2 |
| 55 | + - uses: julia-actions/julia-downgrade-compat@v2 |
| 56 | + with: |
| 57 | + skip: "ReactantCore" |
| 58 | + - name: "Setup Runtime Preferences" |
| 59 | + uses: "DamianReeves/write-file-action@master" |
| 60 | + with: |
| 61 | + path: "LocalPreferences.toml" |
| 62 | + write-mode: "overwrite" |
| 63 | + contents: | |
| 64 | + [Reactant] |
| 65 | + xla_runtime = "${{ matrix.runtime }}" |
| 66 | + - name: "Install Dependencies and Run Tests" |
| 67 | + run: | |
| 68 | + import Pkg |
| 69 | + Pkg.Registry.update() |
| 70 | + # Install packages present in subdirectories |
| 71 | + dev_pks = Pkg.PackageSpec[] |
| 72 | + for path in ("lib/ReactantCore",) |
| 73 | + push!(dev_pks, Pkg.PackageSpec(; path)) |
| 74 | + end |
| 75 | + Pkg.develop(dev_pks) |
| 76 | + Pkg.test(; coverage="user") |
| 77 | + shell: julia --color=yes --code-coverage=user --depwarn=yes --project=. {0} |
| 78 | + id: run_tests |
| 79 | + env: |
| 80 | + JULIA_PKG_SERVER_REGISTRY_PREFERENCE: eager |
| 81 | + REACTANT_TEST_GROUP: ${{ matrix.test_group }} |
| 82 | + XLA_FLAGS: "--xla_force_host_platform_device_count=12" |
| 83 | + JULIA_DEBUG: "Reactant,Reactant_jll" |
| 84 | + - name: Upload MLIR modules |
| 85 | + uses: actions/upload-artifact@v4 |
| 86 | + timeout-minutes: 10 |
| 87 | + if: ${{ always() }} |
| 88 | + with: |
| 89 | + name: "mlir-downgrade-${{ matrix.test_group }}-${{ matrix.runtime }}-${{ github.event_name }}" |
| 90 | + path: "**/*.mlir" |
| 91 | + retention-days: 90 |
| 92 | + overwrite: false |
| 93 | + - uses: julia-actions/julia-processcoverage@v1 |
| 94 | + - uses: codecov/codecov-action@v5 |
| 95 | + with: |
| 96 | + files: lcov.info |
0 commit comments