Skip to content

Commit

Permalink
ci: Remove full compatibility tests from default workflow
Browse files Browse the repository at this point in the history
The full compatibility tests with all Python versions on all operating
systems lead to a significant slowdown when multiple workflows are
running.  With this patch, we only run tests with Python 3.9 on the
three operating systems.  The full tests are run once a day or after a
manual trigger (e. g. before a release).
  • Loading branch information
robin-nitrokey committed Aug 12, 2024
1 parent 2f61618 commit 7d60efe
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,14 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.9", "3.10", "3.11", "3.12"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: "3.9"
- name: Install SDK
run: pip install .
- name: Run test suite
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/full.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Full compatibility tests
on:
schedule:
# run daily
- cron: "0 0 * * *"
workflow_dispatch:

jobs:
test-pip:
name: Run test suite with pip installation
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.9", "3.10", "3.11", "3.12"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install SDK
run: pip install .
- name: Run test suite
run: python -m unittest -v

0 comments on commit 7d60efe

Please sign in to comment.