Merge pull request #152 from aarontrowbridge/main #446
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
name: Runtests | |
on: | |
push: | |
branches: | |
- 'main' | |
paths-ignore: | |
- 'docs/**' | |
pull_request: | |
branches: | |
- 'main' | |
paths-ignore: | |
- 'docs/**' | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- ready_for_review | |
jobs: | |
test: | |
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} ( ${{ matrix.group }} ) | |
runs-on: ${{ matrix.os }} | |
permissions: # needed to allow julia-actions/cache to delete old caches that it has created | |
actions: write | |
contents: read | |
if: ${{ !github.event.pull_request.draft }} | |
strategy: | |
fail-fast: false | |
matrix: | |
# for core tests (latest and oldest supported versions) | |
version: | |
- '1.7' | |
- '1.10' | |
os: | |
- ubuntu-latest | |
- macOS-latest | |
- windows-latest | |
arch: | |
- x64 | |
group: | |
- Core | |
include: | |
# for core tests (intermediate versions) | |
- version: '1.8' | |
os: 'ubuntu-latest' | |
arch: 'x64' | |
group: 'Core' | |
- version: '1.9' | |
os: 'ubuntu-latest' | |
arch: 'x64' | |
group: 'Core' | |
# for code quality tests | |
- version: '1' | |
os: 'ubuntu-latest' | |
arch: 'x64' | |
group: 'Code-Quality' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: julia-actions/setup-julia@v2 | |
with: | |
version: ${{ matrix.version }} | |
arch: ${{ matrix.arch }} | |
- uses: julia-actions/cache@v2 | |
- uses: julia-actions/julia-buildpkg@v1 | |
- uses: julia-actions/julia-runtest@v1 | |
env: | |
GROUP: ${{ matrix.group }} | |
- uses: julia-actions/julia-processcoverage@v1 | |
with: | |
directories: src,ext | |
- uses: codecov/codecov-action@v4 | |
with: | |
files: lcov.info | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: true |