-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(github-actions): add workflows for subpackages
- Loading branch information
Showing
4 changed files
with
168 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: CI (BracketingNonlinearSolve) | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
paths: | ||
- "lib/BracketingNonlinearSolve/src/**" | ||
- "lib/BracketingNonlinearSolve/ext/**" | ||
- "lib/BracketingNonlinearSolve/test/**" | ||
- "lib/BracketingNonlinearSolve/Project.toml" | ||
- ".github/workflows/CI_BracketingNonlinearSolve.yml" | ||
push: | ||
branches: | ||
- master | ||
|
||
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/') }} | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
version: | ||
- "min" | ||
- "1" | ||
os: | ||
- ubuntu-latest | ||
- macos-latest | ||
- windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: julia-actions/setup-julia@v2 | ||
with: | ||
version: ${{ matrix.version }} | ||
- uses: actions/cache@v4 | ||
env: | ||
cache-name: cache-artifacts | ||
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 }}- | ||
- name: "Install Dependencies and Run Tests" | ||
run: | | ||
import Pkg | ||
Pkg.Registry.update() | ||
# Install packages present in subdirectories | ||
for path in ("lib/NonlinearSolveBase",) | ||
Pkg.develop(; path) | ||
end | ||
Pkg.instantiate() | ||
Pkg.test(; coverage=true) | ||
shell: julia --color=yes --code-coverage=user --depwarn=yes --project=lib/BracketingNonlinearSolve {0} | ||
- uses: julia-actions/julia-processcoverage@v1 | ||
with: | ||
directories: lib/BracketingNonlinearSolve/src,lib/BracketingNonlinearSolve/ext | ||
- uses: codecov/codecov-action@v4 | ||
with: | ||
file: lcov.info | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
verbose: true | ||
fail_ci_if_error: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: CI (NonlinearSolve) | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
paths: | ||
- "src/**" | ||
- "ext/**" | ||
- "test/**" | ||
- "Project.toml" | ||
- ".github/workflows/CI_NonlinearSolve.yml" | ||
push: | ||
branches: | ||
- master | ||
|
||
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/') }} | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
group: | ||
- Core | ||
- Downstream | ||
- Misc | ||
- Wrappers | ||
version: | ||
- "min" | ||
- "1" | ||
os: | ||
- ubuntu-latest | ||
- macos-latest | ||
- windows-latest | ||
steps: | ||
- name: "Stub" | ||
run: echo "Remember to uncomment the following steps!!!!!!!!" | ||
# - uses: actions/checkout@v4 | ||
# - uses: julia-actions/setup-julia@v2 | ||
# with: | ||
# version: ${{ matrix.version }} | ||
# - uses: actions/cache@v4 | ||
# env: | ||
# cache-name: cache-artifacts | ||
# 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 }}- | ||
# - uses: julia-actions/julia-buildpkg@v1 | ||
# - uses: julia-actions/julia-runtest@v1 | ||
# env: | ||
# GROUP: ${{ matrix.group }} | ||
# JULIA_NUM_THREADS: 11 | ||
# RETESTITEMS_NWORKERS: 4 | ||
# RETESTITEMS_NWORKER_THREADS: 2 | ||
# - uses: julia-actions/julia-processcoverage@v1 | ||
# with: | ||
# directories: src,ext | ||
# - uses: codecov/codecov-action@v4 | ||
# with: | ||
# file: lcov.info | ||
# token: ${{ secrets.CODECOV_TOKEN }} | ||
# verbose: true | ||
# fail_ci_if_error: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters