Skip to content

Commit

Permalink
Merge all PR tests (#2802)
Browse files Browse the repository at this point in the history
  • Loading branch information
prryplatypus committed Aug 20, 2023
1 parent 760dfff commit 87fa3c9
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 237 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/pr-bandit.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/pr-docs.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/pr-linter.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/pr-python-pypy.yml

This file was deleted.

49 changes: 49 additions & 0 deletions .github/workflows/pr-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: PR tests

on:
pull_request:
branches:
- main
- current-release
- "*LTS"
types: [opened, synchronize, reopened, ready_for_review]

jobs:
run_pr_tests:
name: "${{ matrix.config.platform == 'windows-latest' && 'Windows' || 'Linux' }} / Python ${{ matrix.config.python-version }} / tox -e ${{ matrix.config.tox-env }}"
if: github.event.pull_request.draft == false
runs-on: ${{ matrix.config.platform || 'ubuntu-latest' }}
strategy:
fail-fast: true
matrix:
config:
- { python-version: "3.8", tox-env: security }
- { python-version: "3.9", tox-env: security }
- { python-version: "3.10", tox-env: security }
- { python-version: "3.11", tox-env: security }
- { python-version: "3.10", tox-env: lint }
- { python-version: "3.10", tox-env: docs }
- { python-version: "3.8", tox-env: type-checking }
- { python-version: "3.9", tox-env: type-checking }
- { python-version: "3.10", tox-env: type-checking }
- { python-version: "3.11", tox-env: type-checking }
- { python-version: "3.8", tox-env: py38, max-attempts: 3 }
- { python-version: "3.8", tox-env: py38-no-ext, max-attempts: 3 }
- { python-version: "3.9", tox-env: py39, max-attempts: 3 }
- { python-version: "3.9", tox-env: py39-no-ext, max-attempts: 3 }
- { python-version: "3.10", tox-env: py310, max-attempts: 3 }
- { python-version: "3.10", tox-env: py310-no-ext, max-attempts: 3 }
- { python-version: "3.11", tox-env: py311, max-attempts: 3 }
- { python-version: "3.11", tox-env: py311-no-ext, max-attempts: 3 }
- { python-version: "3.8", tox-env: py38-no-ext, platform: windows-latest, ignore-errors: true }
- { python-version: "3.9", tox-env: py39-no-ext, platform: windows-latest, ignore-errors: true }
- { python-version: "3.10", tox-env: py310-no-ext, platform: windows-latest, ignore-errors: true }
- { python-version: "3.11", tox-env: py310-no-ext, platform: windows-latest, ignore-errors: true }
steps:
- name: Run tests
uses: prryplatypus/simple-tox@main
with:
python-version: ${{ matrix.config.python-version }}
tox-env: ${{ matrix.config.tox-env }}
max-attempts: ${{ matrix.config.max-attempts || 1 }}
ignore-errors: ${{ matrix.config.ignore-errors || false }}
37 changes: 0 additions & 37 deletions .github/workflows/pr-type-check.yml

This file was deleted.

55 changes: 0 additions & 55 deletions .github/workflows/pr-unit-tests.yml

This file was deleted.

0 comments on commit 87fa3c9

Please sign in to comment.