Skip to content

Commit

Permalink
try tracing doctest
Browse files Browse the repository at this point in the history
slow ...?

and use documenter fork
  • Loading branch information
benlorenz committed Jul 21, 2023
1 parent aa4d50d commit dde052a
Showing 1 changed file with 13 additions and 57 deletions.
70 changes: 13 additions & 57 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,57 +15,6 @@ concurrency:
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}

jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 150
continue-on-error: ${{ matrix.julia-version == 'nightly' }}
strategy:
fail-fast: false
matrix:
julia-version:
- '1.6'
- '1.9'
- '~1.10.0-0'
- 'nightly'
os:
- ubuntu-latest
include:
# Add a few macOS jobs (not too many, the number we can run in parallel is limited)
- julia-version: 'nightly'
os: macOS-latest

steps:
- uses: actions/checkout@v3
with:
# For Codecov, we must also fetch the parent of the HEAD commit to
# be able to properly deal with PRs / merges
fetch-depth: 2
- name: "Set up Julia"
uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
- name: "Build package"
uses: julia-actions/julia-buildpkg@latest
- name: "limit OpenMP threads"
if: runner.os == 'macOS'
# restrict number of openMP threads on macOS due to oversubscription
run: echo "OMP_NUM_THREADS=1" >> $GITHUB_ENV
- name: "Run tests"
uses: julia-actions/julia-runtest@latest
with:
annotate: ${{ matrix.julia-version == '1.9' }}
coverage: ${{ matrix.julia-version == '1.9' }}
depwarn: error
- name: "Process code coverage"
if: matrix.julia-version == '1.9'
uses: julia-actions/julia-processcoverage@v1
with:
directories: src,experimental
- name: "Upload coverage data to Codecov"
if: matrix.julia-version == '1.9'
continue-on-error: true
uses: codecov/codecov-action@v3

doctest:
runs-on: ${{ matrix.os }}
timeout-minutes: 150
Expand All @@ -76,13 +25,8 @@ jobs:
julia-version:
- '1.9'
- '~1.10.0-0'
- 'nightly'
os:
- ubuntu-latest
include:
# Add macOS jobs (not too many, the number we can run in parallel is limited)
- julia-version: '1.9'
os: macOS-latest

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -114,14 +58,26 @@ jobs:
julia --project=docs --color=yes -e '
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.add(url="https://github.com/benlorenz/Documenter.jl", rev="bl/printblockandtime027")
Pkg.instantiate()'
- name: "Run doctests"
env:
JULIA_RR_RECORD_ARGS: -n
run: |
julia --project=docs --depwarn=error --color=yes -e'
echo -1 | sudo tee /proc/sys/kernel/perf_event_paranoid
julia --bug-report=rr-local -- --project=docs --depwarn=error --color=yes -e'
using Documenter
using Oscar
DocMeta.setdocmeta!(Oscar, :DocTestSetup, :(using Oscar; Oscar.AbstractAlgebra.set_current_module(@__MODULE__)); recursive = true)
doctest(Oscar)'
ls -la $HOME/.local/share/rr/
- name: "Archive rr-trace"
if: success() || failure()
uses: actions/upload-artifact@v3
with:
name: doctest-rr-trace
path: |
$HOME/.local/share/rr
- name: "Process code coverage"
if: matrix.julia-version == '1.9'
uses: julia-actions/julia-processcoverage@v1
Expand Down

0 comments on commit dde052a

Please sign in to comment.