Skip to content

Commit

Permalink
Picks test branch based on current branch
Browse files Browse the repository at this point in the history
  • Loading branch information
holm10 committed Jan 14, 2025
1 parent 55784d9 commit 6c59891
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/build-test-wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@ jobs:
steps:
- uses: actions/checkout@v4

-name: Check branch and define test branch
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
run: |
if [[ ${BRANCH_NAME} == *"master"* ]]; then
echo "testbranch=pytests" >> $GITHUB_ENV
else
echo "testbranch=pytests-develop" >> $GITHUB_ENV
fi
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
Expand All @@ -68,10 +78,10 @@ jobs:
run: |
python -m pip install . -C "--build-option=--serial"
- name: Return to pytests branch
- name: Switch to pytests branch
uses: actions/checkout@v4
with:
ref: pytests-develop
ref: env.testbranch
repository: LLNL/UEDGE

- name: Test with pytest
Expand Down

0 comments on commit 6c59891

Please sign in to comment.