From 022d55595b0f2744308707d6f6ab9296be199cce Mon Sep 17 00:00:00 2001 From: Alyssa Travitz Date: Tue, 3 Feb 2026 16:24:56 -0800 Subject: [PATCH 1/2] run slow tests separately --- .github/workflows/ci.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 627910d2f..4adf44a00 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -130,14 +130,17 @@ jobs: # the key is pooch-${{ matrix.os }}-1 change it to pooch-${{ matrix.os }}-2 key: pooch-${{ matrix.os }}-1 - - name: "Run tests" + - name: "Run fast tests" env: - # Set the OFE_SLOW_TESTS to True if running a Cron job - OFE_SLOW_TESTS: ${{ fromJSON('{"false":"false","true":"true"}')[github.event_name != 'pull_request'] }} - DUECREDIT_ENABLE: 'yes' + OFE_SLOW_TESTS: "false" run: | pytest -n auto -v --cov=openfe --cov=openfecli --cov-report=xml --durations=10 + - name: "Run slow tests" + if: github.event_name != 'pull_request' + run: | + pytest -n auto -v --cov=openfe --cov=openfecli --cov-report=xml --durations=10 -m slow + - name: codecov-pr if: ${{ github.repository == 'OpenFreeEnergy/openfe' && github.event_name == 'pull_request' }} From eb24b73014f575f9961b19613c28b61e3ad2c43e Mon Sep 17 00:00:00 2001 From: Alyssa Travitz Date: Tue, 3 Feb 2026 16:39:44 -0800 Subject: [PATCH 2/2] add env flag --- .github/workflows/ci.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4adf44a00..e3f26baaa 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -138,6 +138,8 @@ jobs: - name: "Run slow tests" if: github.event_name != 'pull_request' + env: + OFE_SLOW_TESTS: "true" run: | pytest -n auto -v --cov=openfe --cov=openfecli --cov-report=xml --durations=10 -m slow