Skip to content

Commit ed77a32

Browse files
authored
Update ci.yml & remove .drone.yml
2 parents cbc5ac6 + 5bc842f commit ed77a32

2 files changed

Lines changed: 29 additions & 67 deletions

File tree

‎.drone.yml‎

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

‎.github/workflows/ci.yml‎

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,46 @@
11
name: CI
22
on:
3-
- push
4-
- pull_request
3+
push:
4+
branches:
5+
- master
6+
tags: ['*']
7+
pull_request:
8+
workflow_dispatch:
9+
concurrency:
10+
# Skip intermediate builds: always.
11+
# Cancel intermediate builds: only if it is a pull request build.
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
514
jobs:
615
test:
7-
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
16+
name: Julia ${{ matrix.version }} - ${{ matrix.os }}
817
runs-on: ${{ matrix.os }}
18+
timeout-minutes: 60
19+
permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created
20+
actions: write
21+
contents: read
922
strategy:
1023
fail-fast: false
1124
matrix:
1225
version:
13-
- '1.5'
14-
- '1.6'
15-
- 'nightly'
26+
- '1.10' # LTS, minimum supported version
27+
- '1' # latest stable release
28+
- 'pre' # latest prerelease, if any
1629
os:
1730
- ubuntu-latest
18-
- macOS-latest
31+
- macos-latest
1932
- windows-latest
20-
arch:
21-
- x64
22-
- x86
23-
exclude:
24-
- os: macOS-latest
25-
arch: x86
2633
steps:
27-
- uses: actions/checkout@v2
28-
- uses: julia-actions/setup-julia@v1
34+
- uses: actions/checkout@v7
35+
- uses: julia-actions/setup-julia@v3
2936
with:
3037
version: ${{ matrix.version }}
31-
arch: ${{ matrix.arch }}
32-
- uses: actions/cache@v1
33-
env:
34-
cache-name: cache-artifacts
35-
with:
36-
path: ~/.julia/artifacts
37-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
38-
restore-keys: |
39-
${{ runner.os }}-test-${{ env.cache-name }}-
40-
${{ runner.os }}-test-
41-
${{ runner.os }}-
38+
- uses: julia-actions/cache@v3
4239
- uses: julia-actions/julia-buildpkg@v1
4340
- uses: julia-actions/julia-runtest@v1
41+
- uses: julia-actions/julia-processcoverage@v1
42+
- uses: codecov/codecov-action@v7
43+
with:
44+
files: lcov.info
45+
token: ${{ secrets.CODECOV_TOKEN }}
46+
fail_ci_if_error: false

0 commit comments

Comments
 (0)