MHLib #7
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: MHLib | |
# Run on master, tags, or any pull request | |
on: | |
# schedule: | |
# - cron: '0 2 * * *' # Daily at 2 AM UTC (8 PM CST) | |
push: | |
branches: [master, testing] | |
tags: ["*"] | |
pull_request: | |
branches: [master, testing] | |
tags: ["*"] | |
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 }} | |
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: | |
fail-fast: false | |
matrix: | |
version: | |
# - "1.0" # LTS | |
# - "1" # Latest Release | |
- '1' # change to '1' when v1.6 is out | |
os: | |
- ubuntu-latest | |
# - macOS-latest | |
# - windows-latest | |
arch: | |
- x64 | |
# - x86 | |
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 | |
- name: Install Julia dependencies and run tests | |
shell: julia --project=monorepo {0} | |
run: | | |
using Pkg | |
# dev mono repo versions | |
pkg"registry up" | |
Pkg.update() | |
pkg"dev ./MHLib" | |
Pkg.test("MHLib"; coverage=true) | |
- uses: julia-actions/julia-processcoverage@v1 | |
with: | |
directories: MHLib/src | |
- uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: lcov.info | |