Skip to content

Commit

Permalink
add workflow; wait for passage before starting most jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
bknueven committed Sep 18, 2024
1 parent c7575bf commit 7e6646c
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/test_pr_and_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,17 @@ defaults:
shell: bash -l {0}

jobs:
ruff:
name: Ruff Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1

nompi4py:
name: no mpi4py
runs-on: ubuntu-latest
needs: [ruff]
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
Expand All @@ -45,6 +53,7 @@ jobs:
regression:
name: Basic regression tests
runs-on: ubuntu-latest
needs: [ruff]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -86,6 +95,9 @@ jobs:
name: run_all.py
runs-on: ubuntu-latest
timeout-minutes: 15
# this takes the most time, so we'll start it
# without waiting on the linting and other checks
# needs: [ruff]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -117,6 +129,7 @@ jobs:
schur-complement:
name: schur-complement
runs-on: ubuntu-latest
needs: [ruff]
strategy:
matrix:
python-version: [3.8, 3.9]
Expand Down Expand Up @@ -151,6 +164,7 @@ jobs:
straight-tests:
name: straight_tests.py
runs-on: ubuntu-latest
needs: [ruff]

steps:
- uses: actions/checkout@v3
Expand All @@ -176,6 +190,7 @@ jobs:
admm-wrapper:
name: admm wrapper tests
runs-on: ubuntu-latest
needs: [ruff]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -205,6 +220,7 @@ jobs:
aph:
name: aph tests
runs-on: ubuntu-latest
needs: [ruff]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -232,6 +248,7 @@ jobs:
pickled-bundles:
name: pickled bundles tests
runs-on: ubuntu-latest
needs: [ruff]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -259,6 +276,7 @@ jobs:
confidence-intervals:
name: confidence intervals tests
runs-on: ubuntu-latest
needs: [ruff]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -291,6 +309,7 @@ jobs:
test-generic-pyomo-released:
name: generic_tester.py
runs-on: ubuntu-latest
needs: [ruff]
timeout-minutes: 15

steps:
Expand Down Expand Up @@ -323,6 +342,7 @@ jobs:
test-gradient-rho:
name: gradient and rho tests
runs-on: ubuntu-latest
needs: [ruff]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -354,7 +374,6 @@ jobs:
test-headers:
name: header test

runs-on: ubuntu-latest

steps:
Expand All @@ -381,8 +400,8 @@ jobs:
test-pysp:
name: pysp tests

runs-on: ubuntu-latest
needs: [ruff]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -415,8 +434,8 @@ jobs:
test-cylinders:
name: tests on some cylinders

runs-on: ubuntu-latest
needs: [ruff]

steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 7e6646c

Please sign in to comment.