Skip to content

update CI jobs #101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Mar 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 16 additions & 14 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: CI
on:
- push
- pull_request
push:
branches:
- master
pull_request:
defaults:
run:
shell: bash
Expand All @@ -10,27 +12,27 @@ jobs:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
version:
- '1.0'
- '1.3'
- '1.5'
- '1.6'
- '1.7'
- '1.10'
- '1'
- 'nightly'
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x64
exclude:
- os: macOS-latest # Apple Silicon
version: '1.0'
- os: macOS-latest # Apple Silicon
version: '1.6'
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-runtest@latest
arch: 'default'
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
27 changes: 13 additions & 14 deletions .github/workflows/Downstream.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,42 @@
name: IntegrationTest
on:
push:
branches:
- master
pull_request:

jobs:
test:
name: ${{ matrix.package.repo }}/${{ matrix.julia-version }}
name: ${{ matrix.package }}/${{ matrix.julia-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
julia-version: [1.6, 1, nightly]
julia-version: ['1.6', '1.10', '1']
os: [ubuntu-latest]
package:
- {repo: JuliaObjects/Accessors.jl}
- {repo: JuliaFolds/BangBang.jl}
- {repo: jw3126/Setfield.jl}
- {repo: rafaqz/Flatten.jl}
- Accessors
- BangBang
- Setfield
- Flatten
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
arch: x64
- uses: julia-actions/julia-buildpkg@latest
- name: Clone Downstream
uses: actions/checkout@v2
with:
repository: ${{ matrix.package.repo }}
path: downstream
- name: Load this and run the downstream tests
shell: julia --color=yes --project=downstream {0}
- name: Install downstream and run its tests
shell: julia --color=yes {0}
run: |
using Pkg
try
Pkg.activate("downstream")
# force it to use this PR's version of the package
Pkg.develop(PackageSpec(path=".")) # resolver may fail with main deps
Pkg.add("${{ matrix.package }}")
Pkg.update()
Pkg.test(coverage=true) # resolver may fail with test time deps
Pkg.test("${{ matrix.package }}", coverage=true) # resolver may fail with test time deps
catch err
err isa Pkg.Resolve.ResolverError || rethrow()
# If we can't resolve that means this is incompatible by SemVer and this is fine
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/RunTestsNoIncrementalPrecompile.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: CI
name: NoCompModules
on:
- push
push:
branches:
- master
- pull_request
defaults:
run:
Expand Down
Loading