forked from JuliaGraphics/Colors.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update workflows (JuliaGraphics#540)
- Loading branch information
Showing
5 changed files
with
91 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,53 @@ | ||
name: Unit test | ||
|
||
on: | ||
create: | ||
tags: | ||
push: | ||
branches: | ||
- master | ||
- 'master' | ||
- 'release-*' | ||
tags: ['*'] | ||
pull_request: | ||
schedule: | ||
- cron: '20 00 1 * *' | ||
|
||
workflow_dispatch: | ||
concurrency: | ||
# Skip intermediate builds: always. | ||
# Cancel intermediate builds: only if it is a pull request build. | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | ||
jobs: | ||
test: | ||
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 60 | ||
permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created | ||
actions: write | ||
contents: read | ||
strategy: | ||
matrix: | ||
julia-version: ['1.0', '1', 'nightly'] | ||
os: [ubuntu-latest, windows-latest, macOS-latest] | ||
fail-fast: false | ||
|
||
matrix: | ||
julia-version: ['1.0', '1.6', '1', 'nightly'] | ||
os: [ubuntu-latest, windows-latest, macos-13] | ||
julia-arch: [x64] | ||
include: | ||
- os: ubuntu-latest # only test one 32-bit job | ||
julia-version: '1' | ||
julia-arch: x86 | ||
- os: macos-latest | ||
julia-version: '1' | ||
julia-arch: aarch64 | ||
- os: macos-latest | ||
julia-version: 'nightly' | ||
julia-arch: aarch64 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: "Set up Julia" | ||
uses: julia-actions/setup-julia@v1 | ||
- uses: actions/checkout@v4 | ||
- uses: julia-actions/setup-julia@v2 | ||
with: | ||
version: ${{ matrix.julia-version }} | ||
|
||
- name: Cache artifacts | ||
uses: actions/cache@v1 | ||
env: | ||
cache-name: cache-artifacts | ||
with: | ||
path: ~/.julia/artifacts | ||
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} | ||
restore-keys: | | ||
${{ runner.os }}-test-${{ env.cache-name }}- | ||
${{ runner.os }}-test- | ||
${{ runner.os }}- | ||
- name: "Unit Test" | ||
uses: julia-actions/julia-runtest@master | ||
|
||
arch: ${{ matrix.julia-arch }} | ||
- uses: julia-actions/cache@v1 | ||
- uses: julia-actions/julia-buildpkg@v1 | ||
- uses: julia-actions/julia-runtest@v1 | ||
- uses: julia-actions/julia-processcoverage@v1 | ||
- uses: codecov/codecov-action@v1 | ||
- uses: codecov/codecov-action@v4 | ||
with: | ||
file: lcov.info | ||
files: lcov.info | ||
token: ${{ secrets.CODECOV_TOKEN }} |