Skip to content

Commit

Permalink
WIP: only normal and slow jobs now
Browse files Browse the repository at this point in the history
  • Loading branch information
Gui-FernandesBR committed Dec 17, 2023
1 parent ae85aa7 commit 55f79c4
Showing 1 changed file with 7 additions and 73 deletions.
80 changes: 7 additions & 73 deletions .github/workflows/test_pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ defaults:
shell: bash

jobs:
Build_and_Unit:
Normal:
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -34,94 +34,28 @@ jobs:
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
- name: Run pytest (Unit Tests)
- name: Run Unit Tests
run: pytest -k "unit" --cov=rocketpy --cov-report=xml:./coverage_unit.xml
- name: Upload coverage to artifacts
uses: actions/upload-artifact@v2
with:
name: coverage-build-and-unit
path: coverage_unit.xml

Integration:
needs: Build_and_Unit
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.8, 3.12]
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install dependencies
run: |
pip install .
pip install -r requirements-tests.txt
- name: Run pytest (Integration Tests)
- name: Run Integration Tests
run: pytest -k "not unit and not acceptance" --cov=rocketpy --cov-report=xml:./coverage_integr.xml
- name: Upload coverage to artifacts
uses: actions/upload-artifact@v2
with:
name: coverage-integration
path: coverage_integr.xml

Acceptance:
needs: Integration
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.8, 3.12]
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install dependencies
run: |
pip install .
pip install -r requirements-tests.txt
- name: Run pytest (Acceptance Tests)
- name: Run Acceptance Tests
run: pytest --cov=rocketpy --cov-report=xml:./coverage_accept.xml
- name: Upload coverage to artifacts
uses: actions/upload-artifact@v2
with:
name: coverage-acceptance
path: coverage_accept.xml

Doc:
needs: Integration
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.8, 3.12]
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install dependencies
run: |
pip install .
pip install -r requirements-tests.txt
- name: Run pytest (Documentation Tests)
- name: Run Documentation Tests
run: |
cd rocketpy
pytest --doctest-modules --cov=rocketpy --cov-report=xml:./coverage_docs.xml
Expand All @@ -131,7 +65,7 @@ jobs:
name: coverage-docs
path: coverage_docs.xml
Slow:
needs: [Acceptance, Doc]
needs: Normal
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down Expand Up @@ -163,7 +97,7 @@ jobs:
path: coverage_slow.xml

CodecovUpload:
needs: [Build_and_Unit, Acceptance, Integration, Doc, Slow]
needs: [Normal, Slow]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit 55f79c4

Please sign in to comment.