Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI #155

Merged
merged 5 commits into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 46 additions & 35 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,59 +6,70 @@ on:
- master
pull_request:

# needed to allow julia-actions/cache to delete old caches that it has created
permissions:
actions: write
contents: read

# Cancel existing tests on the same PR if a new commit is added to a pull request
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}

jobs:
test:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.version == 'nightly' }}
runs-on: ${{ matrix.runner.os }}
strategy:
matrix:
version:
- '1.6'
- '1'
- nightly
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x86
- x64
num_threads:
- 1
- 2
exclude:
- os: windows-latest
arch: x86
- os: macOS-latest
runner:
- os: ubuntu-latest
arch: x64
version: '1'
# x86
- os: ubuntu-latest
arch: x86
- version: '1.6'
num_threads: 2
include:
- version: '1'
os: ubuntu-latest
version: '1'
# Minimum supported version
- os: ubuntu-latest
arch: x64
num_threads: 1
coverage: true
version: 'min'
# Windows
- os: windows-latest
arch: x64
version: '1'
# macOS
- os: macos-latest
arch: aarch64
version: '1'

steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v1
- uses: actions/checkout@v4

- uses: julia-actions/setup-julia@v2
with:
cache-packages: "false" # caching Conda.jl causes precompilation error
version: ${{ matrix.runner.version }}
arch: ${{ matrix.runner.arch }}

- uses: julia-actions/cache@v2

- uses: julia-actions/julia-buildpkg@latest

- uses: julia-actions/julia-runtest@latest
env:
JULIA_NUM_THREADS: ${{ matrix.num_threads }}

- uses: julia-actions/julia-processcoverage@v1
if: matrix.coverage
- uses: codecov/codecov-action@v1
if: matrix.coverage

- uses: codecov/codecov-action@v5
with:
file: lcov.info
- uses: coverallsapp/github-action@master
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}

- uses: coverallsapp/github-action@v2
if: matrix.coverage
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/JuliaPre.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: JuliaPre

on:
push:
branches:
- master
pull_request:

# needed to allow julia-actions/cache to delete old caches that it has created
permissions:
actions: write
contents: read

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: 'pre' # pre-release
arch: x64
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
Loading