Skip to content
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

Create TestOnPR workflow with a lighter test load #156

Merged
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
13 changes: 8 additions & 5 deletions .github/workflows/Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ on:
- "test/**"
- "*.toml"
tags: ["*"]
pull_request:
paths:
- "src/**"
- "test/**"
- "*.toml"
# These lines were commented out because of issue #133 (run tests faster on PRs)
# pull_request:
# paths:
# - "src/**"
# - "test/**"
# - "*.toml"
concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only if it is a pull request build.
Expand Down Expand Up @@ -47,6 +48,8 @@ jobs:
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
if: ${{ matrix.version }} == "1" && ${{ matrix.os }} == "ubuntu-latest"
- uses: codecov/codecov-action@v3
if: ${{ matrix.version }} == "1" && ${{ matrix.os }} == "ubuntu-latest"
with:
files: lcov.info
42 changes: 42 additions & 0 deletions .github/workflows/TestOnPR.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This file was created because of issue #133 (run tests faster on PRs)
# If you want to run the full test, change Test.yml and delete this file
name: Test on PR
on:
pull_request:
paths:
- "src/**"
- "test/**"
- "*.toml"
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/') }}
permissions:
contents: read
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- "1"
os:
- ubuntu-latest
arch:
- x64
steps:
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v3
with:
files: lcov.info
Loading