Skip to content

Commit

Permalink
Run more continuous integration configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobjpeters committed May 21, 2024
1 parent d1a03f7 commit 8458f20
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 8 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,47 @@ on:
branches:
- main
tags: '*'
pull_request:
branches:
- main
tags: '*'
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
env:
coverage: {{ matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.arch == 'x86' }}
strategy:
fail-fast: false
matrix:
version:
- '1'
- '1.6'
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x64
- 'x64'
- 'x86'
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
show-versioninfo: true
- uses: julia-actions/julia-downgrade-compat@v1
if: {{ matrix.version == '1.6' }}
with:
strict: 'true'
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
if: {{ coverage }}
- uses: codecov/codecov-action@v4
if: {{ coverage }}
with:
files: lcov.info
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
- name: Install dependencies
run: julia --color=yes --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
run: julia --color=yes --project=docs -e 'using Pkg; Pkg.develop(PackageSpec(path = ".")); Pkg.instantiate()'
- name: Build and deploy
run: julia --color=yes --project=docs docs/make.jl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: julia --color=yes --project=docs/ docs/make.jl
6 changes: 3 additions & 3 deletions .github/workflows/readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
name: README
on:
push:
branches:
- 'main'
paths:
- 'HEADER.md'
- 'docs/src/index.md'
- 'docs/src/assets/logo.svg'
- '.github/workflows/readme.yml'
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -19,5 +19,5 @@ jobs:
- run: |
git config user.name github-actions
git config user.email [email protected]
git diff --quiet || (git add . && git commit -m "Regenerate \`README.md\`")
git diff --quiet || (git add . && git commit -m "Regenerate README.md")
git push
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ Typst_jll = "eb4b1da6-20f6-5c66-9826-fdb8ad410d0e"
[compat]
Artifacts = "1"
PrecompileTools = "1"
Typst_jll = "0.1 - 0.11"
Typst_jll = "0.1, 0.2, 0.3, 0.7, 0.8, 0.10, 0.11"
julia = "1.6"
3 changes: 2 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ using Typstry
end

@testset "`detect_ambiguities` and `detect_unbound_args`" begin
@test all(detect -> isempty(detect(Typstry)), (detect_ambiguities, detect_unbound_args))
@test isempty(detect_ambiguities(Typstry))
@test isempty(detect_unbound_args(Typstry))
end

setdocmeta!(
Expand Down

0 comments on commit 8458f20

Please sign in to comment.