diff --git a/.github/workflows/test-docs.yml b/.github/workflows/test-docs.yml index 3cf930c90..52482d979 100644 --- a/.github/workflows/test-docs.yml +++ b/.github/workflows/test-docs.yml @@ -15,7 +15,7 @@ env: STORAGE_MANAGER_DIRECTORY: /tmp/storage-manager jobs: - tests: + tests-docs: runs-on: ubuntu-latest steps: diff --git a/.github/workflows/test-pr-e2e.yml b/.github/workflows/test-pr-e2e.yml index fa7bb31d6..ba7cb43e5 100644 --- a/.github/workflows/test-pr-e2e.yml +++ b/.github/workflows/test-pr-e2e.yml @@ -26,7 +26,7 @@ env: EE_ENABLED: true jobs: - tests: + tests-e2e: runs-on: ubuntu-latest strategy: matrix: diff --git a/.github/workflows/test-pr.yml b/.github/workflows/test-pr.yml index d505b95e4..02b188f3f 100644 --- a/.github/workflows/test-pr.yml +++ b/.github/workflows/test-pr.yml @@ -64,28 +64,35 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + - uses: chartboost/ruff-action@v1 with: src: "./keep" + - name: Set up Python ${{ env.PYTHON_VERSION }} uses: actions/setup-python@v4 with: python-version: ${{ env.PYTHON_VERSION }} + - name: Install Poetry uses: snok/install-poetry@v1 with: virtualenvs-create: true virtualenvs-in-project: true + - name: cache deps id: cache-deps uses: actions/cache@v2 with: path: .venv key: pydeps-${{ hashFiles('**/poetry.lock') }} + - name: Install dependencies using poetry - run: poetry install --no-interaction --no-root + run: poetry install --no-interaction --no-root --with dev + - name: Validate docs for providers run: python3 ./scripts/docs_get_providers_list.py --validate; + - name: Run unit tests and report coverage run: | # Add a step to wait for MySQL to be fully up and running @@ -95,8 +102,10 @@ jobs: done echo "MySQL is up and running!" poetry run coverage run --branch -m pytest --ignore=tests/e2e_tests/ + - name: Convert coverage results to JSON (for CodeCov support) run: poetry run coverage json --omit="keep/providers/*" + - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v3 with: