Skip to content

Commit 1635f79

Browse files
authored
build: update Tests workflow (#247)
1 parent 71faf6c commit 1635f79

File tree

2 files changed

+75
-41
lines changed

2 files changed

+75
-41
lines changed

.github/workflows/Tests.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
paths:
8+
- '.github/workflows/Tests.yml'
9+
- 'src/**'
10+
- 'ext/**'
11+
- 'test/**'
12+
- 'Project.toml'
13+
pull_request:
14+
branches:
15+
- 'main'
16+
paths:
17+
- '.github/workflows/Tests.yml'
18+
- 'src/**'
19+
- 'ext/**'
20+
- 'test/**'
21+
- 'Project.toml'
22+
types:
23+
- opened
24+
- reopened
25+
- synchronize
26+
- ready_for_review
27+
28+
concurrency:
29+
# Skip intermediate builds: always.
30+
# Cancel intermediate builds: only if it is a pull request build.
31+
group: ${{ github.workflow }}-${{ github.ref }}
32+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
33+
34+
env:
35+
JULIA_NUM_THREADS: 11
36+
37+
jobs:
38+
test:
39+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
40+
runs-on: ${{ matrix.os }}
41+
timeout-minutes: 300
42+
permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created
43+
actions: write
44+
contents: read
45+
strategy:
46+
fail-fast: false
47+
matrix:
48+
version:
49+
- 'pre'
50+
- 'lts'
51+
- '1'
52+
os:
53+
- ubuntu-latest
54+
arch:
55+
- x64
56+
steps:
57+
- uses: actions/checkout@v4
58+
with:
59+
persist-credentials: false
60+
- uses: julia-actions/setup-julia@v2
61+
with:
62+
show-versioninfo: true
63+
version: ${{ matrix.version }}
64+
arch: ${{ matrix.arch }}
65+
- uses: julia-actions/cache@v2
66+
- uses: julia-actions/julia-buildpkg@v1
67+
- uses: julia-actions/julia-runtest@v1
68+
- uses: julia-actions/julia-processcoverage@v1
69+
- uses: codecov/codecov-action@v5
70+
with:
71+
token: ${{ secrets.CODECOV_TOKEN }}
72+
file: lcov.info
73+
name: codecov-umbrella
74+
fail_ci_if_error: false
75+
if: ${{ matrix.version == 'lts' }}

.github/workflows/ci.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)