Skip to content

Commit

Permalink
Update some CI actions (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens authored Feb 22, 2024
1 parent 2472a32 commit 489f12e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 9 deletions.
2 changes: 0 additions & 2 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@ coverage:
changes:
default:
informational: true

comment: false
2 changes: 1 addition & 1 deletion .github/workflows/Documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
deploy_docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: "Set up Julia"
uses: julia-actions/setup-julia@latest
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/OscarTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
pull_request:
workflow_dispatch:

# needed to allow julia-actions/cache to delete old caches that it has created
permissions:
actions: write
contents: read

concurrency:
# group by workflow and ref; the last slightly strange component ensures that for pull
# requests, we limit to 1 concurrent job, but for the master branch we don't
Expand Down Expand Up @@ -43,7 +48,7 @@ jobs:
# os: macOS-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
# For Codecov, we must also fetch the parent of the HEAD commit to
# be able to properly deal with PRs / merges
Expand All @@ -58,7 +63,8 @@ jobs:
- name: Restore cache
uses: julia-actions/cache@v1
with:
cache-name: 'oscartest-${{ matrix.julia-version }}-${{ matrix.os }}-${{ matrix.julia-arch }}'
cache-name: julia-cache;workflow=${{ github.workflow }};julia=${{ matrix.julia-version }};arch=${{ runner.arch }}
include-matrix: false

- name: "Dev Oscar.jl master"
shell: julia --project=. --color=yes {0}
Expand All @@ -84,6 +90,6 @@ jobs:

- name: "Upload coverage data to Codecov"
continue-on-error: true
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
12 changes: 9 additions & 3 deletions .github/workflows/Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
pull_request:
workflow_dispatch:

# needed to allow julia-actions/cache to delete old caches that it has created
permissions:
actions: write
contents: read

concurrency:
# group by workflow and ref; the last slightly strange component ensures that for pull
# requests, we limit to 1 concurrent job, but for the master branch we don't
Expand Down Expand Up @@ -43,7 +48,7 @@ jobs:
# os: macOS-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
# For Codecov, we must also fetch the parent of the HEAD commit to
# be able to properly deal with PRs / merges
Expand All @@ -58,7 +63,8 @@ jobs:
- name: Restore cache
uses: julia-actions/cache@v1
with:
cache-name: 'test-${{ matrix.julia-version }}-${{ matrix.os }}-${{ matrix.julia-arch }}'
cache-name: julia-cache;workflow=${{ github.workflow }};julia=${{ matrix.julia-version }};arch=${{ runner.arch }}
include-matrix: false

- name: "Build package"
uses: julia-actions/julia-buildpkg@latest
Expand All @@ -76,6 +82,6 @@ jobs:

- name: "Upload coverage data to Codecov"
continue-on-error: true
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 489f12e

Please sign in to comment.