-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #218 from SimonEnsemble/split-workflows
split workflows
- Loading branch information
Showing
5 changed files
with
191 additions
and
165 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
julia_version: '1.7.2' | ||
|
||
jobs: | ||
|
||
unit-and-doc-tests: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
|
||
steps: | ||
- name: checkout commit | ||
uses: actions/checkout@master | ||
|
||
- name: set up Julia | ||
uses: julia-actions/setup-julia@latest | ||
with: | ||
version: ${{env.julia_version}} | ||
|
||
- name: build package | ||
uses: julia-actions/julia-buildpkg@latest | ||
|
||
- name: install dependencies | ||
run: julia --project --color=yes -e 'import Pkg; Pkg.add.(["FIGlet", "Coverage"])' | ||
|
||
- name: run tests | ||
run: julia --project --color=yes --code-coverage -e 'import Pkg; Pkg.test(coverage=true)' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} | ||
|
||
- name: process test coverage | ||
uses: julia-actions/julia-processcoverage@v1 | ||
|
||
- name: upload coverage report | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
verbose: true | ||
|
||
|
||
aqua-jl: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
|
||
steps: | ||
- name: checkout commit | ||
uses: actions/checkout@v2 | ||
|
||
- name: set up Julia | ||
uses: julia-actions/setup-julia@latest | ||
with: | ||
version: ${{ env.julia_version }} | ||
|
||
- name: build package | ||
uses: julia-actions/julia-buildpkg@latest | ||
|
||
- name: install dependencies | ||
run: julia --project --color=yes -e 'import Pkg; Pkg.add.(["Aqua"])' | ||
|
||
- name: Aqua.jl | ||
run: julia --project --color=yes ./test/aqua.jl |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Docs | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
julia_version: '1.7.2' | ||
|
||
|
||
jobs: | ||
|
||
deploy-docs: | ||
if: github.ref_name == 'master' | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
|
||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
DOCUMENTER_KEY: ${{secrets.DOCUMENTER_KEY}} | ||
|
||
steps: | ||
- name: checkout commit | ||
uses: actions/checkout@master | ||
|
||
- name: set up Julia | ||
uses: julia-actions/setup-julia@latest | ||
with: | ||
version: ${{env.julia_version}} | ||
|
||
- name: build package | ||
uses: julia-actions/julia-buildpkg@latest | ||
|
||
- name: install dependencies | ||
run: julia --project --color=yes -e 'import Pkg; Pkg.add.(["FIGlet"])' | ||
|
||
- name: build and deploy docs | ||
run: julia --project --color=yes ./docs/make.jl |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: Weekly | ||
|
||
on: | ||
schedule: # run at midnight pacific time on Mondays | ||
- cron: '0 8 * * 1' | ||
workflow_dispatch: # run on button-press in Actions tab | ||
|
||
concurrency: # only allow the most recent workflow to execute | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: # environment variables | ||
julia_version: '1.7.2' # julia version to use on all runners (except cross-platform) | ||
|
||
jobs: | ||
|
||
cross-platform-os: | ||
if: github.ref_name == 'master' | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
os: [macos-latest, windows-latest, ubuntu-latest] | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 30 | ||
|
||
steps: | ||
- name: checkout commit | ||
uses: actions/checkout@master | ||
|
||
- name: set up Julia | ||
uses: julia-actions/setup-julia@latest | ||
with: | ||
version: ${{ env.julia_version }} | ||
|
||
- name: build package | ||
uses: julia-actions/julia-buildpkg@latest | ||
|
||
- name: install dependencies | ||
run: julia --project --color=yes -e 'import Pkg; Pkg.add("Documenter")' | ||
shell: bash | ||
|
||
- name: run tests | ||
run: julia --project --color=yes -e 'import Pkg; Pkg.test()' | ||
shell: bash | ||
|
||
|
||
cross-platform-julia: | ||
if: github.ref_name == 'master' | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
julia: ['1.6.4', '1.7.0'] | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
|
||
steps: | ||
- name: checkout commit | ||
uses: actions/checkout@master | ||
|
||
- name: set up Julia | ||
uses: julia-actions/setup-julia@latest | ||
with: | ||
version: ${{ matrix.julia }} | ||
|
||
- name: build package | ||
uses: julia-actions/julia-buildpkg@latest | ||
|
||
- name: install dependencies | ||
run: julia --project --color=yes -e 'import Pkg; Pkg.add("Documenter")' | ||
shell: bash | ||
|
||
- name: run tests | ||
run: julia --project --color=yes -e 'import Pkg; Pkg.test()' | ||
shell: bash |
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