From aab776ca82b525a8f3e6e84ec9a6119cf138c4e2 Mon Sep 17 00:00:00 2001 From: Gui-FernandesBR Date: Sun, 17 Dec 2023 20:04:02 -0300 Subject: [PATCH] WIP: pip install tests requirements --- .github/workflows/test_pytest.yaml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test_pytest.yaml b/.github/workflows/test_pytest.yaml index 86f451483..8a536d5b7 100644 --- a/.github/workflows/test_pytest.yaml +++ b/.github/workflows/test_pytest.yaml @@ -59,6 +59,10 @@ jobs: 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: Upload coverage to artifacts @@ -79,7 +83,9 @@ jobs: PYTHON: ${{ matrix.python-version }} steps: - name: Install dependencies - run: pip install -r requirements-tests.txt + 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: Upload coverage to artifacts @@ -99,7 +105,9 @@ jobs: PYTHON: ${{ matrix.python-version }} steps: - name: Install dependencies - run: pip install -r requirements-tests.txt + run: | + pip install . + pip install -r requirements-tests.txt - name: Run pytest (Documentation Tests) run: | cd rocketpy @@ -121,7 +129,10 @@ jobs: PYTHON: ${{ matrix.python-version }} steps: - name: Install dependencies - run: pip install -r requirements-tests.txt + run: | + pip install . + pip install -r requirements-tests.txt + pip install -r requirements-optional.txt - name: Run pytest --runslow if: github.ref == 'refs/heads/master' run: |