Merge pull request #45 from SimonEnsemble/tune_up_2024 #35
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: build | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
concurrency: | |
group: 'Controlz' | |
cancel-in-progress: true | |
jobs: | |
unit-and-doc-tests: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- name: checkout commit | |
uses: actions/checkout@main | |
- name: set up Julia | |
uses: julia-actions/setup-julia@latest | |
with: | |
version: '1.10.0' | |
- name: build package | |
uses: julia-actions/julia-buildpkg@latest | |
- name: run tests | |
run: julia --project --color=yes -e 'import Pkg; Pkg.test()' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} | |
- name: set up documenter | |
run: julia --project -e 'import Pkg; Pkg.add("Documenter")' | |
- name: build and deploy docs | |
run: julia --project --color=yes ./docs/make.jl | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} |