Skip to content

Fix environment not set correctly in Apptainer #13

Fix environment not set correctly in Apptainer

Fix environment not set correctly in Apptainer #13

Workflow file for this run

name: Run tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']
os: [ubuntu-latest]
fail-fast: false # Continue running jobs even if one fails
steps:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.17
- name: Set up PDM
uses: pdm-project/setup-pdm@568ddd69406b30de1774ec0044b73ae06e716aa4 # v4.1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pdm sync --dev
- name: Run pytest
run: |
pdm run --verbose pytest tests
- name: Set up apptainer
uses: eWaterCycle/setup-apptainer@49d1318e968f6198413f051f13af8b8bb9153368 # v2
with:
apptainer-version: 1.3.0
- name: Run integration tests
run: |
for test in tests/integration/*/test.sh; do
echo "Running $test"
pushd $(dirname $test)
bash $(basename $test)
popd
done