diff --git a/.github/workflows/test_pytest.yaml b/.github/workflows/test_pytest.yaml index 8a536d5b7..b2f75b741 100644 --- a/.github/workflows/test_pytest.yaml +++ b/.github/workflows/test_pytest.yaml @@ -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: @@ -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: @@ -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: @@ -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: