Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/test-pytest-slow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
env:
PYTHON: ${{ matrix.python-version }}
MPLBACKEND: Agg
LIBGL_ALWAYS_SOFTWARE: "1"
GALLIUM_DRIVER: llvmpipe
steps:
- uses: actions/checkout@main
- name: Set up headless display
Expand Down
17 changes: 16 additions & 1 deletion .github/workflows/test_pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
Pytest:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.10", "3.14"]
Expand All @@ -28,6 +29,11 @@ jobs:
- uses: actions/checkout@main
- name: Set up headless display
uses: pyvista/setup-headless-display-action@v4
- name: Configure Mesa software rendering on Linux
if: runner.os == 'Linux'
run: |
echo "LIBGL_ALWAYS_SOFTWARE=1" >> "$GITHUB_ENV"
echo "GALLIUM_DRIVER=llvmpipe" >> "$GITHUB_ENV"
- name: Set up Python
uses: actions/setup-python@main
with:
Expand Down Expand Up @@ -58,7 +64,16 @@ jobs:
pytest rocketpy --doctest-modules --cov=rocketpy --cov-append

- name: Run Integration Tests
run: pytest tests/integration --cov=rocketpy --cov-append
run: |
if [[ "$RUNNER_OS" == "macOS" && "$PYTHON" == "3.14" ]]; then
pytest tests/integration \
--deselect tests/integration/test_plots.py::test_flight_animations_run_off_screen \
--deselect tests/integration/test_plots.py::test_flight_animations_render_all_scene_options \
--deselect tests/integration/test_plots.py::test_flight_animation_export_gif \
--cov=rocketpy --cov-append
else
pytest tests/integration --cov=rocketpy --cov-append
fi

- name: Run Acceptance Tests
run: pytest tests/acceptance --cov=rocketpy --cov-append --cov-report=xml
Expand Down