Skip to content

Commit

Permalink
WIP: change the "needs" fields again
Browse files Browse the repository at this point in the history
  • Loading branch information
Gui-FernandesBR committed Dec 17, 2023
1 parent aab776c commit 5f7de10
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions .github/workflows/test_pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
name: coverage-build-and-unit
path: coverage_unit.xml

Acceptance:
Integration:
needs: Build_and_Unit
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -53,26 +53,20 @@ jobs:
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)
run: pytest --cov=rocketpy --cov-report=xml:./coverage_accept.xml
- name: Run pytest (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-acceptance
path: coverage_accept.xml
name: coverage-integration
path: coverage_integr.xml

Integration:
needs: Build_and_Unit
Acceptance:
needs: Integration
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -82,19 +76,26 @@ jobs:
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)
run: pytest -k "not unit and not acceptance" --cov=rocketpy --cov-report=xml:./coverage_integr.xml
- name: Run pytest (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-integration
path: coverage_integr.xml
name: coverage-acceptance
path: coverage_accept.xml

Doc:
needs: Build_and_Unit
needs: Integration
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -118,7 +119,7 @@ jobs:
name: coverage-docs
path: coverage_docs.xml
Slow:
needs: [Acceptance, Integration, Doc]
needs: [Acceptance, Doc]
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down

0 comments on commit 5f7de10

Please sign in to comment.