Skip to content

Commit

Permalink
Cleanup Linux PR Unit Test (#2778)
Browse files Browse the repository at this point in the history
  • Loading branch information
prryplatypus committed Jul 9, 2023
1 parent 6848ff2 commit b72dc3d
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 180 deletions.
48 changes: 0 additions & 48 deletions .github/workflows/pr-python310.yml

This file was deleted.

48 changes: 0 additions & 48 deletions .github/workflows/pr-python311.yml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/pr-python38.yml

This file was deleted.

48 changes: 0 additions & 48 deletions .github/workflows/pr-python39.yml

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/pr-unit-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Run unit tests (Linux)

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

jobs:
run_unit_tests:
name: Run unit tests on Python ${{ matrix.config.python-version }}
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
config:
- { python-version: "3.8", tox-env: py38 }
- { python-version: "3.8", tox-env: py38-no-ext }
- { python-version: "3.9", tox-env: py39 }
- { python-version: "3.9", tox-env: py39-no-ext }
- { python-version: "3.10", tox-env: py310 }
- { python-version: "3.10", tox-env: py310-no-ext }
- { python-version: "3.11", tox-env: py311 }
- { python-version: "3.11", tox-env: py311-no-ext }

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Python ${{ matrix.config.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.config.python-version }}

- name: Install tox
run: pip install tox

- name: Run unit tests
run: tox -e ${{ matrix.config.tox-env }}

0 comments on commit b72dc3d

Please sign in to comment.