From eee2ceafff6a127bd5911563328a7f0ed0473dc0 Mon Sep 17 00:00:00 2001 From: Andrew Date: Thu, 28 Jul 2022 16:34:45 -0500 Subject: [PATCH] ci: update tests workflow --- .github/workflows/tests.yml | 31 +++++++++++-------------------- 1 file changed, 11 insertions(+), 20 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c5e69ba..c6f2ca3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,7 +2,6 @@ name: Tests on: - push - - pull_request jobs: tests: @@ -14,16 +13,16 @@ jobs: include: - { python: "3.10", os: "ubuntu-latest", session: "pre-commit" } - { python: "3.10", os: "ubuntu-latest", session: "safety" } - - { python: "3.10", os: "ubuntu-latest", session: "mypy" } - - { python: "3.9", os: "ubuntu-latest", session: "mypy" } - - { python: "3.8", os: "ubuntu-latest", session: "mypy" } - - { python: "3.7", os: "ubuntu-latest", session: "mypy" } + # - { python: "3.10", os: "ubuntu-latest", session: "mypy" } + # - { python: "3.9", os: "ubuntu-latest", session: "mypy" } + # - { python: "3.8", os: "ubuntu-latest", session: "mypy" } + # - { python: "3.7", os: "ubuntu-latest", session: "mypy" } - { python: "3.10", os: "ubuntu-latest", session: "tests" } - { python: "3.9", os: "ubuntu-latest", session: "tests" } - { python: "3.8", os: "ubuntu-latest", session: "tests" } - { python: "3.7", os: "ubuntu-latest", session: "tests" } - - { python: "3.10", os: "windows-latest", session: "tests" } - - { python: "3.10", os: "macos-latest", session: "tests" } + # - { python: "3.10", os: "windows-latest", session: "tests" } + # - { python: "3.10", os: "macos-latest", session: "tests" } # - { python: "3.10", os: "ubuntu-latest", session: "typeguard" } - { python: "3.10", os: "ubuntu-latest", session: "xdoctest" } - { python: "3.10", os: "ubuntu-latest", session: "docs-build" } @@ -35,7 +34,7 @@ jobs: steps: - name: Check out the repository - uses: actions/checkout@v3 + uses: actions/checkout@v3.0.2 - name: Set up Python ${{ matrix.python }} uses: actions/setup-python@v4.1.0 @@ -97,14 +96,14 @@ jobs: - name: Upload coverage data if: always() && matrix.session == 'tests' - uses: "actions/upload-artifact@v3" + uses: "actions/upload-artifact@v3.1.0" with: name: coverage-data path: ".coverage.*" - name: Upload documentation if: matrix.session == 'docs-build' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v3.1.0 with: name: docs path: docs/_build @@ -114,7 +113,7 @@ jobs: needs: tests steps: - name: Check out the repository - uses: actions/checkout@v3 + uses: actions/checkout@v3.0.2 - name: Set up Python uses: actions/setup-python@v4.1.0 @@ -138,17 +137,9 @@ jobs: nox --version - name: Download coverage data - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v3.0.0 with: name: coverage-data - - name: Combine coverage data and display human readable report - run: | - nox --force-color --session=coverage - - - name: Create coverage report - run: | - nox --force-color --session=coverage -- xml - - name: Upload coverage report uses: codecov/codecov-action@v3.1.0