From eb33a68c10247b345d9bb10905a39a71f30d743b Mon Sep 17 00:00:00 2001 From: tomasvana10 Date: Wed, 1 May 2024 18:32:56 +1000 Subject: [PATCH] Test new workflow (2) --- .github/workflows/tox-tests.yml | 10 +++---- .github/workflows/tox_tests.yml | 51 --------------------------------- 2 files changed, 4 insertions(+), 57 deletions(-) delete mode 100644 .github/workflows/tox_tests.yml diff --git a/.github/workflows/tox-tests.yml b/.github/workflows/tox-tests.yml index 80e40e7..43f1d9b 100644 --- a/.github/workflows/tox-tests.yml +++ b/.github/workflows/tox-tests.yml @@ -11,19 +11,17 @@ jobs: strategy: fail-fast: false matrix: - exclude: - - platform: windows-latest - python-version: [pypy-3.7, pypy-3.8, pypy-3.9, pypy-3.10] + exclude: - platform: macos-latest - python-version: [3.7, pypy-3.7] + python-version: 3.7 - platform: ubuntu-latest - python-version: [3.12] + python-version: 3.12 # https://help.github.com/articles/virtual-environments-for-github-actions platform: - ubuntu-latest # ubuntu-22.04 - macos-latest # macOS-12 - windows-latest # windows-2022 - python-version: [3.7, 3.8, 3.9, '3.10', 3.11, 3.12, pypy-3.7, pypy-3.8, pypy-3.9, pypy-3.10] + python-version: [3.7, 3.8, 3.9, '3.10', 3.11, 3.12] steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/tox_tests.yml b/.github/workflows/tox_tests.yml deleted file mode 100644 index 113cca2..0000000 --- a/.github/workflows/tox_tests.yml +++ /dev/null @@ -1,51 +0,0 @@ -name: Tests - -on: - push: - branches: [main] - pull_request: - -jobs: - build: - runs-on: ${{ matrix.platform }} - strategy: - fail-fast: false - matrix: - # https://help.github.com/articles/virtual-environments-for-github-actions - platform: - - ubuntu-latest # ubuntu-22.04 - - macos-latest # macOS-12 - - windows-latest # windows-2022 - python-version: [3.7, 3.8, 3.9, '3.10', 3.11, 3.12, pypy-3.7, pypy-3.8, pypy-3.9, pypy-3.10] - - steps: - - uses: actions/checkout@v3 - if: ${{ ! startsWith(matrix.python-version, 'pypy-') }} - - uses: actions/checkout@v1 - if: ${{ startsWith(matrix.python-version, 'pypy-') }} - # Using actions/checkout@v2 or later with pypy causes an error - # https://foss.heptapod.net/pypy/pypy/-/issues/3640 - # py.error.ENOENT: [No such file or directory]: - # listdir('/home/runner/work/tox-gh-actions/tox-gh-actions/.tox/dist/ - # warnings.warn(f\'"{wd.path}" is shallow and may cause errors\')',) - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade setuptools pip wheel - # Use the latest published version for myself :) - python -m pip install --pre tox-gh-actions - - name: Test with tox - run: tox - - name: Upload coverage.xml - if: ${{ matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.12' }} - uses: actions/upload-artifact@v3 - with: - name: tox-gh-actions-coverage - path: coverage.xml - if-no-files-found: error - - name: Upload coverage.xml to codecov - if: ${{ matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.12' }} - uses: codecov/codecov-action@v2 \ No newline at end of file