-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from oscar-system/th/include
Handle empty includes
Showing
4 changed files
with
119 additions
and
16 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,88 @@ | ||
name: OscarCI (no include block) | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
generatematrix: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
matrix: ${{ steps.set-matrix.outputs.matrix }} | ||
env: | ||
PR_NUMBER: ${{github.event.number}} | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: "Set up Julia" | ||
uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: '~1.6.0-0' | ||
- name: OscarDevTools - CI | ||
if: github.repository == 'oscar-system/OscarDevTools.jl' | ||
run: | | ||
julia --project=oscar-dev -e "using Pkg; | ||
Pkg.add(path=\".\"); | ||
Pkg.instantiate();" | ||
- name: fetch OscarDevTools | ||
if: github.repository != 'oscar-system/OscarDevTools.jl' | ||
run: | | ||
julia --project=oscar-dev -e "using Pkg; | ||
Pkg.add(\"OscarDevTools\"); | ||
Pkg.instantiate();" | ||
- id: set-matrix | ||
run: | | ||
julia --project=oscar-dev -e "using OscarDevTools.OscarCI; | ||
ciprefs = parse_meta(\"test/meta/OscarCI-noinclude.toml\"); | ||
cimat = ci_matrix(ciprefs; | ||
pr=${PR_NUMBER}, | ||
active_repo=\"${GITHUB_REPOSITORY}\"); | ||
@show cimat; | ||
println(github_json(cimat));" | ||
test-oscar: | ||
needs: generatematrix | ||
name: ${{ join(matrix.*.name) }} - ${{ matrix.os }}, julia ${{ matrix.julia-version}} | ||
runs-on: ${{ matrix.os }} | ||
continue-on-error: ${{ matrix.julia-version == 'nightly' }} | ||
env: | ||
PR_NUMBER: ${{github.event.number}} | ||
strategy: | ||
matrix: ${{fromJSON(needs.generatematrix.outputs.matrix)}} | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
- name: "Set up Julia" | ||
uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: ${{ matrix.julia-version }} | ||
- name: re-using OscarDevTools checkout | ||
if: github.repository == 'oscar-system/OscarDevTools.jl' | ||
run: | | ||
julia --project=oscar-dev -e "using Pkg; | ||
Pkg.add(path=\".\"); | ||
Pkg.instantiate();" | ||
- name: fetch OscarDevTools | ||
if: github.repository != 'oscar-system/OscarDevTools.jl' | ||
run: | | ||
julia --project=oscar-dev -e "using Pkg; | ||
Pkg.add(url=\"https://github.com/oscar-system/OscarDevTools.jl\"); | ||
Pkg.instantiate();" | ||
- name: "Set up Oscar-dev configuration" | ||
env: | ||
MATRIX_CONTEXT: ${{ toJSON(matrix) }} | ||
run: | | ||
echo "$MATRIX_CONTEXT" | ||
julia --project=oscar-dev -e "using OscarDevTools, OscarDevTools.OscarCI; | ||
meta = job_meta_env(\"MATRIX_CONTEXT\"); | ||
oscar_develop(job_pkgs(meta); | ||
dir=\"oscar-dev\", | ||
active_repo=\"${GITHUB_REPOSITORY}\"); | ||
github_env_runtests(meta; | ||
varname=\"oscar_run_tests\", | ||
filename=\"${GITHUB_ENV}\");" | ||
- name: "Run tests" | ||
run: | | ||
echo '${{ env.oscar_run_tests }}' | ||
julia --project=oscar-dev/project/ -e '${{ env.oscar_run_tests }}' |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name = "OscarDevTools" | ||
uuid = "4f01c588-2833-446a-9dbd-6331d80acb41" | ||
authors = ["Benjamin Lorenz <[email protected]>"] | ||
version = "0.1.0" | ||
version = "0.1.1" | ||
|
||
[deps] | ||
GitHub = "bc5e4493-9b4d-5f90-b8aa-2b2bcaad7a26" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
title = "metadata for oscar CI run" | ||
|
||
# keep it small to prevent job-explosion | ||
[env] | ||
os = [ "ubuntu-latest" ] | ||
julia-version = [ "~1.6.0-0" ] | ||
|
||
# for OscarDevTools we mostly use release versions | ||
[pkgs] | ||
[pkgs.Oscar] | ||
branches = [ "master" ] | ||
test = true | ||
testoptions = [] |
4fa7620
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
4fa7620
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/32080
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: