Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup Linux PR Unit Test #2778

Merged
merged 12 commits into from
Jul 9, 2023
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 }}
Loading