Skip to content

Commit

Permalink
#39: run only subset of tests on each branch
Browse files Browse the repository at this point in the history
  • Loading branch information
mschwoer committed May 17, 2024
1 parent b6ff6b9 commit a18c0f7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/branch-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,14 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/[email protected]
# For feature branches, we don't test the full matrix (os x [stable, loose]) in order to save time & resources.
run-tests-loose:
name: Test loose pip installation on ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest]
uses: ./.github/workflows/_run_tests.yml
with:
python-version: ${{ matrix.python-version }}
os: ${{ matrix.os }}
install-script: "loose_pip_install.sh"
3 changes: 1 addition & 2 deletions .github/workflows/pip_installation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
push:
branches: [ main, development ]
pull_request:
branches: [ main, development ]
branches: [ main ]
workflow_dispatch:

name: Pip installation and tests
Expand All @@ -29,7 +29,6 @@ jobs:

loose_installation:
name: Test loose pip installation on ${{ matrix.os }}
# runs-on: ${{ matrix.os }} # `runs-on` conflicts with `uses`, see https://github.com/orgs/community/discussions/62320
strategy:
matrix:
# macos-latest is now arm64, which cannot install mono
Expand Down

0 comments on commit a18c0f7

Please sign in to comment.