diff --git a/.github/workflows/Documentation.yml b/.github/workflows/Documentation.yml index 8a688af..30f60b8 100644 --- a/.github/workflows/Documentation.yml +++ b/.github/workflows/Documentation.yml @@ -6,7 +6,8 @@ on: - master tags: '*' pull_request: - + schedule: + - cron: '44 9 * * 5' jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/Downgrade.yml b/.github/workflows/Downgrade.yml index 01ff8ca..78b2e81 100644 --- a/.github/workflows/Downgrade.yml +++ b/.github/workflows/Downgrade.yml @@ -10,20 +10,32 @@ on: - master paths-ignore: - 'docs/**' + schedule: + - cron: '44 9 * * 5' jobs: test: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: + fail-fast: false matrix: - version: ['1'] + group: + - Core + version: + - '1' + os: + - ubuntu-latest + - macos-latest + - windows-latest steps: - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@v1 with: version: ${{ matrix.version }} - uses: cjdoris/julia-downgrade-compat-action@v1 -# if: ${{ matrix.version == '1.6' }} with: skip: Pkg,TOML + - uses: julia-actions/cache@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 \ No newline at end of file diff --git a/.github/workflows/Downstream.yml b/.github/workflows/Downstream.yml index 701df92..fcb2c33 100644 --- a/.github/workflows/Downstream.yml +++ b/.github/workflows/Downstream.yml @@ -1,31 +1,48 @@ name: IntegrationTest on: - push: - branches: [master] - tags: [v*] pull_request: + branches: + - master + paths-ignore: + - 'docs/**' + push: + branches: + - master + tags: + - v* + paths-ignore: + - 'docs/**' + schedule: + - cron: '44 9 * * 5' jobs: test: - name: ${{ matrix.package.repo }}/${{ matrix.package.group }}/${{ matrix.julia-version }} + name: ${{ matrix.package.repo }}/${{ matrix.package.group }}/${{ matrix.version }} runs-on: ${{ matrix.os }} env: GROUP: ${{ matrix.package.group }} strategy: fail-fast: false matrix: - julia-version: [1] - os: [ubuntu-latest] package: - {user: SciML, repo: RecursiveArrayTools.jl, group: All} - {user: JuliaSymbolics, repo: Symbolics.jl, group: SymbolicIndexingInterface} - {user: SciML, repo: SciMLBase.jl, group: SymbolicIndexingInterface} + version: + - '1' + os: + - ubuntu-latest + - macos-latest + - windows-latest steps: - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@v1 with: - version: ${{ matrix.julia-version }} + version: ${{ matrix.version }} arch: x64 + - uses: julia-actions/cache@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} - uses: julia-actions/julia-buildpkg@latest - name: Clone Downstream uses: actions/checkout@v4 @@ -33,7 +50,7 @@ jobs: repository: ${{ matrix.package.user }}/${{ matrix.package.repo }} path: downstream - name: Load this and run the downstream tests - shell: julia --color=yes --project=downstream {0} + shell: julia --color=yes --depwarn=error --project=downstream {0} run: | using Pkg try diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b78ae7e..8e17676 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,32 +3,42 @@ on: pull_request: branches: - master + paths-ignore: + - 'docs/**' push: branches: - master + paths-ignore: + - 'docs/**' + schedule: + - cron: '44 9 * * 5' jobs: test: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: + fail-fast: false matrix: group: - - All + - Core version: - '1' + os: + - ubuntu-latest + - macos-latest + - windows-latest steps: - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@v1 with: version: ${{ matrix.version }} - - uses: actions/cache@v4 - env: - cache-name: cache-artifacts + - uses: julia-actions/cache@v1 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 }}- + token: ${{ secrets.GITHUB_TOKEN }} - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 + with: + depwarn: error + - uses: julia-actions/julia-processcoverage@v1 + - uses: codecov/codecov-action@v3 + with: + file: lcov.info \ No newline at end of file diff --git a/test/runtests.jl b/test/runtests.jl index 5dbabc2..237f753 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -2,24 +2,10 @@ using SymbolicIndexingInterface using SafeTestsets using Test -@safetestset "Quality Assurance" begin - @time include("qa.jl") -end -@safetestset "Interface test" begin - @time include("example_test.jl") -end -@safetestset "Trait test" begin - @time include("trait_test.jl") -end -@safetestset "SymbolCache test" begin - @time include("symbol_cache_test.jl") -end -@safetestset "Fallback test" begin - @time include("fallback_test.jl") -end -@safetestset "Parameter indexing test" begin - @time include("parameter_indexing_test.jl") -end -@safetestset "State indexing test" begin - @time include("state_indexing_test.jl") -end +@time @safetestset "Quality Assurance" include("qa.jl") +@time @safetestset "Interface test" include("example_test.jl") +@time @safetestset "Trait test" include("trait_test.jl") +@time @safetestset "SymbolCache test" include("symbol_cache_test.jl") +@time @safetestset "Fallback test" include("fallback_test.jl") +@time @safetestset "Parameter indexing test" include("parameter_indexing_test.jl") +@time @safetestset "State indexing test" include("state_indexing_test.jl")