diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..36638199 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,43 @@ +name: test + +# Controls when the action will run. +on: + # Triggers the workflow on push or pull request events but only for the master branch + push: + branches: [ main ] + pull_request: + branches: [ main ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + prt-test: + runs-on: ubuntu-latest + + container: + image: rpgoldman/popper-prt:latest + + steps: + - name: checkout-popper + uses: actions/checkout@v3 + + - name: install-popper + run: pip install --break-system-packages . + + - name: configure tests + run: | + echo "POPPER_DIR=${GITHUB_WORKSPACE}\nPOPPER_PYTHON=/usr/bin/python3" >> $GITHUB_ENV + + - name: run-prt-tests + run: | + cd /popper-prt + prt + + - name: Upload results + uses: actions/upload-artifact@v4 + if: always() + with: + name: prt results directories + path: /popper-prt/results