CI: run the pytao test suite with every bmad commit #794
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bmad Ecosystem - Build & Test | |
on: | |
# Run on demand | |
workflow_dispatch: | |
# Run on push to main | |
push: | |
branches: | |
- "main" | |
# Run on pull requests | |
pull_request: | |
## Future Ideas: | |
## PR make it 10 or less | |
## For main and time based we can run something bigger | |
## Run when releases are published | |
## release: | |
## types: | |
## - "published" | |
# Configuration for the version of external packages | |
# We do this so we can cache them and avoid checking out that big | |
# repository at all times. | |
env: | |
EXTERNAL_PACKAGES_VERSION: main | |
# | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
# | |
defaults: | |
run: | |
shell: bash | |
strategy: | |
matrix: | |
# Future Ideas: | |
# add macOS - check if GH Actions can make intel and arm | |
os: [ubuntu-latest] | |
shared: ["Y"] | |
openmp_mpi: ["N", "Y"] | |
steps: | |
# Check out the code from GitHub | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup-dependencies | |
with: | |
external-packages-version: ${{ env.EXTERNAL_PACKAGES_VERSION }} | |
- name: Build Bmad | |
env: | |
USE_MPI: ${{ matrix.openmp_mpi }} | |
SHARED: ${{ matrix.shared }} | |
run: .github/scripts/install_bmad.sh | |
- name: Run Tests | |
run: .github/scripts/run_tests.sh |