Skip to content

Run tests on pull requests #30

Run tests on pull requests

Run tests on pull requests #30

name: Run tests

Check failure on line 1 in .github/workflows/apptainer-build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/apptainer-build.yml

Invalid workflow file

`pull_requests` is not a valid event name
on:
workflow_dispatch:
pull_requests:
branches:
- 'main'
jobs:
build-test-container:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
container:
image: quay.io/singularity/singularity:v4.1.0
options: --privileged
name: Build and test Package
steps:
- name: Check out code for the container builds
uses: actions/checkout@v4
- name: Build Container
run: |
singularity build container.sif apptainer.def
- name: Install package and run test
run: |
singularity run container.sif