-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Switch to github actions * sudo for apt install * Separate nightly and add badge * Remove doctest from nightly file * Move ci to same file and remove apt from test * Remove nightly file * Update job names * Split test and docs in two files * Add documenter key to tagbot * Combine versions, run coverage on v1 * Quote v1.0 so it is not same as v1 * Testing doc commands * move doctest to test * add apt needed for doctest to test * change test jobname, try to fix weird bug * move doctest to Docs * Fix imports for docs workflow * remove explicit doctest call, makedocs includes it * Fix badges for test * rename workflows * doctest in runtest * add apt install to ci test * add timeout of 30 minutes * Set StaticArrays compat to 1.0 and update doctest * Bind StaticArrays dep to 0.12 for julia 1.0 * Update test badge to point to correct workflow * Remove StaticArrays restriction, test on julia 1.3 * Move back to test 1.0 with StaticArrays 0.12 * Remove unused DOCUMENTER_KEY * Fix badge link * Fix badge link (again...) * Remove StaticArrays compat, move doctest * Keep compat in docs * Remove extra citation * remove docs apt deps from ci * add envvars for plots to doctest * Remove StaticArrays from test deps * Move ENV setup for docs * Revert "Move ENV setup for docs" This reverts commit d49c1a2. * increase timeout limit for ci and docs * Add badge for doc status * Documentation -> Docs in actions * Reduce CI timeout time * add newline between badges * Add strict check for docs, remove double doctest * Run doctest twice until we figure out strict kw
- Loading branch information
Showing
9 changed files
with
119 additions
and
54 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,58 @@ | ||
name: Docs | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
docs: | ||
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 30 | ||
strategy: | ||
matrix: | ||
version: [1] | ||
os: [ubuntu-latest] | ||
arch: [x64] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: ${{ matrix.version }} | ||
arch: ${{ matrix.arch }} | ||
- name: Install apt deps | ||
run: sudo apt-get install libgtk-3-dev dvipng texlive | ||
- uses: actions/cache@v1 | ||
env: | ||
cache-name: cache-artifacts | ||
with: | ||
path: ~/.julia/artifacts | ||
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} | ||
restore-keys: | | ||
${{ runner.os }}-test-${{ env.cache-name }}- | ||
${{ runner.os }}-test- | ||
${{ runner.os }}- | ||
- name: Setup docs environment | ||
run: | | ||
julia --project=docs -e ' | ||
using Pkg | ||
Pkg.develop(PackageSpec(path=pwd())) | ||
Pkg.instantiate()' | ||
- name: Test docs # Test are also run in the makedocs, but there they don't error properly unless we set strict in which case warnings also error | ||
run: | | ||
julia --project=docs -e ' | ||
ENV["PLOTS_TEST"] = "true" | ||
ENV["GKSwstype"] = "nul" | ||
using Documenter: doctest | ||
using ControlSystems | ||
doctest(ControlSystems)' | ||
- name: Generate documentation | ||
run: julia --project=docs --color=yes docs/make.jl | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,48 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
runtests: | ||
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} | ||
runs-on: ${{ matrix.os }} | ||
continue-on-error: ${{ matrix.version == 'nightly' }} # Allow nightly to fail and workflow still count as completed | ||
timeout-minutes: 30 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
version: ['1.0', '1', 'nightly'] | ||
os: [ubuntu-latest] | ||
arch: [x64] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: ${{ matrix.version }} | ||
arch: ${{ matrix.arch }} | ||
- uses: actions/cache@v1 | ||
env: | ||
cache-name: cache-artifacts | ||
with: | ||
path: ~/.julia/artifacts | ||
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} | ||
restore-keys: | | ||
${{ runner.os }}-test-${{ env.cache-name }}- | ||
${{ runner.os }}-test- | ||
${{ runner.os }}- | ||
- uses: julia-actions/julia-buildpkg@v1 | ||
- uses: julia-actions/julia-runtest@v1 | ||
- uses: julia-actions/julia-processcoverage@v1 | ||
if: ${{ matrix.version == '1' }} | ||
- uses: codecov/codecov-action@v1 | ||
if: ${{ matrix.version == '1' }} | ||
with: | ||
file: lcov.info |
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
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
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
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
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
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