-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
68 additions
and
0 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,36 @@ | ||
name: Documentation | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- actions/trigger/docs | ||
tags: '*' | ||
pull_request: | ||
|
||
jobs: | ||
Documenter: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: julia-actions/setup-julia@latest | ||
with: | ||
version: 1.4 | ||
- name: Install Run.jl | ||
run: julia -e 'using Pkg; pkg"add Run@0.1"' | ||
- name: Install dependencies | ||
run: julia -e 'using Run; Run.prepare_docs()' | ||
- name: Build and deploy | ||
id: build-and-deploy | ||
if: | | ||
github.event_name == 'push' || ( | ||
github.event_name == 'pull_request' && | ||
!contains(github.head_ref, 'create-pull-request/') | ||
) | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
DOCUMENTER_KEY: ${{ secrets.SSH_KEY }} | ||
run: julia -e 'using Run; Run.docs()' | ||
- name: Just build | ||
if: steps.build-and-deploy.outcome == 'skipped' | ||
run: julia -e 'using Run; Run.docs()' |
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,32 @@ | ||
name: Run tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: '*' | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
julia-version: ['~1.6.0-rc1', '1.5', '1.4', 'nightly'] | ||
fail-fast: false | ||
name: Test Julia ${{ matrix.julia-version }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup julia | ||
uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: ${{ matrix.julia-version }} | ||
- run: julia -e 'using Pkg; pkg"add Run@0.1"' | ||
- run: julia -e 'using Run; Run.prepare("test")' | ||
- run: julia -e 'using Run; Run.test()' | ||
- uses: julia-actions/julia-processcoverage@v1 | ||
- uses: codecov/codecov-action@v1 | ||
with: | ||
file: ./lcov.info | ||
flags: unittests | ||
name: codecov-umbrella |