Skip to content

Scheduled Tests

Scheduled Tests #1

name: Scheduled Tests
on:
schedule:
- cron: "0 17 * * 5" # at 05:00 PM, only on Friday
timezone: "America/Sao_Paulo"
defaults:
run:
shell: bash
jobs:
pytest:
runs-on: ubuntu-latest
strategy:
matrix:
fail-fast: false

Check failure on line 17 in .github/workflows/test-pytest-slow.yaml

View workflow run for this annotation

GitHub Actions / Scheduled Tests

Invalid workflow file

The workflow is not valid. .github/workflows/test-pytest-slow.yaml (Line: 17, Col: 20): Unexpected value 'false'
python-version: [3.9, 3.12]
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install rocketpy
run: pip install .
- name: Test importing rocketpy
run: python -c "import sys, rocketpy; print(f'{rocketpy.__name__} running on Python {sys.version}')"
- name: Install test dependencies
run: |
pip install -r requirements-tests.txt
pip install .[all]
- name: Run Unit Tests
run: pytest tests/unit --cov=rocketpy
- name: Run Documentation Tests
run: pytest rocketpy --doctest-modules --cov=rocketpy --cov-append
- name: Run Integration Tests
run: pytest tests/integration --cov=rocketpy --cov-append
- name: Run Acceptance Tests
run: pytest tests/acceptance --cov=rocketpy --cov-append --cov-report=xml
- name: Run slow tests
run: pytest tests -vv -m slow --runslow --cov=rocketpy --cov-append --cov-report=xml