Merge pull request #187 from astro-group-bristol/fergus/noZ-metric #389
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: Test | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'src/**.jl' | |
- 'test/**.jl' | |
push: | |
branches: | |
- main | |
paths: | |
- 'src/**.jl' | |
- 'test/**.jl' | |
concurrency: | |
# cancels when a PR gets updated | |
group: ${{ github.head_ref || github.run_id }}-${{ github.actor }} | |
cancel-in-progress: true | |
jobs: | |
smoke-test: | |
name: Julia ${{ matrix.version }} - ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
julia-version: ['1.10'] | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: julia-actions/setup-julia@v1 | |
with: | |
version: ${{ matrix.julia-version }} | |
- uses: julia-actions/cache@v1 | |
with: | |
cache-registries: "true" | |
cache-compiled: "true" | |
- run: julia -e 'import Pkg; Pkg.Registry.add(Pkg.RegistrySpec(url="https://github.com/astro-group-bristol/AstroRegistry/"))' | |
- uses: julia-actions/julia-buildpkg@v1 | |
- uses: julia-actions/julia-runtest@v1 | |
- uses: julia-actions/julia-processcoverage@v1 | |
with: | |
directories: src | |
- uses: codecov/codecov-action@v3 | |
with: | |
files: lcov.info |