diff --git a/.github/workflows/continuous_integration.yml b/.github/workflows/continuous_integration.yml index 6741c60..39727a7 100644 --- a/.github/workflows/continuous_integration.yml +++ b/.github/workflows/continuous_integration.yml @@ -5,19 +5,29 @@ 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 @@ -25,11 +35,17 @@ jobs: 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: diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index d1b9d81..9d8fe95 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -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 diff --git a/.github/workflows/readme.yml b/.github/workflows/readme.yml index 668db7e..2a000d2 100644 --- a/.github/workflows/readme.yml +++ b/.github/workflows/readme.yml @@ -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 @@ -19,5 +19,5 @@ jobs: - run: | git config user.name github-actions git config user.email github-actions@github.com - git diff --quiet || (git add . && git commit -m "Regenerate \`README.md\`") + git diff --quiet || (git add . && git commit -m "Regenerate README.md") git push diff --git a/Project.toml b/Project.toml index 7b36c1d..e2abeef 100644 --- a/Project.toml +++ b/Project.toml @@ -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" diff --git a/test/runtests.jl b/test/runtests.jl index b2b3b87..ab32953 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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!(