diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 84b92d4..c0e6217 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -1,42 +1,47 @@ name: CI on: + pull_request: + branches: + - main + paths-ignore: + - 'docs/**' push: branches: - main - tags: ['*'] - pull_request: -concurrency: - # Skip intermediate builds: always. - # Cancel intermediate builds: only if it is a pull request build. - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} + paths-ignore: + - 'docs/**' + schedule: + - cron: '53 20 * * 5' jobs: test: - name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} runs-on: ${{ matrix.os }} + env: + GROUP: ${{ matrix.group }} strategy: fail-fast: false matrix: + group: + - Core version: - - '1.6' - '1' os: - ubuntu-latest - arch: - - x64 + - macos-latest + - windows-latest steps: - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@v2 with: version: ${{ matrix.version }} - arch: ${{ matrix.arch }} - - uses: julia-actions/julia-downgrade-compat@v1 - if: ${{ matrix.version == '1.6' }} - with: - skip: Pkg, TOML - uses: julia-actions/cache@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 + env: + GROUP: ${{ matrix.group }} + with: + depwarn: error - uses: julia-actions/julia-processcoverage@v1 - uses: codecov/codecov-action@v4 with: diff --git a/.github/workflows/Documentation.yml b/.github/workflows/Documentation.yml index 785116e..8ad0240 100644 --- a/.github/workflows/Documentation.yml +++ b/.github/workflows/Documentation.yml @@ -6,7 +6,8 @@ on: - main tags: '*' pull_request: - + schedule: + - cron: '53 20 * * 5' concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch || github.ref != 'refs/tags/v*' }} diff --git a/.github/workflows/Downgrade.yml b/.github/workflows/Downgrade.yml new file mode 100644 index 0000000..3b93f91 --- /dev/null +++ b/.github/workflows/Downgrade.yml @@ -0,0 +1,45 @@ +name: Downgrade +on: + pull_request: + branches: + - main + paths-ignore: + - 'docs/**' + push: + branches: + - main + paths-ignore: + - 'docs/**' + schedule: + - cron: '53 20 * * 5' +jobs: + test: + runs-on: ${{ matrix.os }} + env: + GROUP: ${{ matrix.group }} + strategy: + fail-fast: false + matrix: + group: + - Core + version: + - '1' + os: + - ubuntu-latest + - macos-latest + - windows-latest + steps: + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 + with: + version: ${{ matrix.version }} + - uses: julia-actions/julia-downgrade-compat@v1 + with: + skip: Pkg,TOML + - uses: julia-actions/cache@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + - uses: julia-actions/julia-buildpkg@v1 + - uses: julia-actions/julia-runtest@v1 + env: + GROUP: ${{ matrix.group }} \ No newline at end of file diff --git a/Project.toml b/Project.toml index 1058eeb..b1d3646 100644 --- a/Project.toml +++ b/Project.toml @@ -20,7 +20,7 @@ ADTypesEnzymeCoreExt = "EnzymeCore" [compat] ChainRulesCore = "1.0.2" EnzymeCore = "0.5.3,0.6,0.7" -julia = "1.6" +julia = "1.10" [extras] Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" diff --git a/test/runtests.jl b/test/runtests.jl index 23d0d96..34a8f09 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -52,13 +52,11 @@ end ## Tests @testset verbose=true "ADTypes.jl" begin - if VERSION >= v"1.10" - @testset "Aqua.jl" begin - Aqua.test_all(ADTypes; deps_compat = (check_extras = false,)) - end - @testset "JET.jl" begin - JET.test_package(ADTypes, target_defined_modules = true) - end + @testset "Aqua.jl" begin + Aqua.test_all(ADTypes; deps_compat = (check_extras = false,)) + end + @testset "JET.jl" begin + JET.test_package(ADTypes, target_defined_modules = true) end @testset "Dense" begin include("dense.jl")