ENH: add error filtering; optionally reuse SubprocessTao
in the test suite
#941
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: Tests | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: "0 0 * * *" # every day at midnight | |
jobs: | |
build: | |
name: ${{ matrix.os }} Python ${{ matrix.python-version }} | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- uses: ./.github/actions/conda-setup | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: ./.github/actions/bmad-setup | |
- name: Show conda environment packages | |
shell: bash -l {0} | |
run: | | |
conda list | |
- name: Run Tests | |
shell: bash -l {0} | |
run: | | |
echo -e '## Test results\n\n```' >> "$GITHUB_STEP_SUMMARY" | |
pytest -v --cov=pytao/ pytao/tests 2>&1 | tee -a "$GITHUB_STEP_SUMMARY" | |
echo '```' >> "$GITHUB_STEP_SUMMARY" |