Update ci.yml #69
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: CI | |
on: | |
push: | |
branches: [ "add-tests-only" ] | |
pull_request: | |
branches: [ "add-tests-only" ] | |
workflow_dispatch: | |
jobs: | |
build: | |
# Use a matrix to run on multiple OS versions | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Julia | |
uses: julia-actions/setup-julia@v1 | |
with: | |
version: '1.6' | |
- name: Install dependencies | |
run: julia -e 'using Pkg; Pkg.instantiate();' | |
- name: Run tests | |
run: julia -e 'using Pkg; Pkg.test(coverage=true);' | |
- name: Upload to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |