From 05b2924d1998fa64b099fa74450cdc67802cc905 Mon Sep 17 00:00:00 2001 From: Ralph Urlus Date: Fri, 1 Mar 2024 14:29:21 +0100 Subject: [PATCH] CICD: Set platform specific scheduled test canaries --- .github/workflows/linux.yml | 32 ++++++++++++++++++++++++++++++++ .github/workflows/macos.yml | 32 ++++++++++++++++++++++++++++++++ .github/workflows/windows.yml | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 96 insertions(+) create mode 100644 .github/workflows/linux.yml create mode 100644 .github/workflows/macos.yml create mode 100644 .github/workflows/windows.yml diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml new file mode 100644 index 0000000..6a40699 --- /dev/null +++ b/.github/workflows/linux.yml @@ -0,0 +1,32 @@ +name: Linux + +on: + workflow_dispatch: + schedule: + - cron: '0 23 * * 1' + +jobs: + tests: + runs-on: ubuntu-latest + name: Linux CPython ${{ matrix.python-version }} + strategy: + fail-fast: false + matrix: + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Build and install + run: | + pip install pip --upgrade + pip install ".[test]" --verbose + + - name: Test + run: | + cd tests + pytest -vv diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 0000000..2d59b1d --- /dev/null +++ b/.github/workflows/macos.yml @@ -0,0 +1,32 @@ +name: MacOS + +on: + workflow_dispatch: + schedule: + - cron: '0 23 * * 1' + +jobs: + tests: + runs-on: macos-latest + name: MacOS CPython ${{ matrix.python-version }} + strategy: + fail-fast: false + matrix: + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Build and install + run: | + pip install pip --upgrade + pip install ".[test]" --verbose + + - name: Test + run: | + cd tests + pytest -vv diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml new file mode 100644 index 0000000..e9ebb08 --- /dev/null +++ b/.github/workflows/windows.yml @@ -0,0 +1,32 @@ +name: Windows + +on: + workflow_dispatch: + schedule: + - cron: '0 23 * * 1' + +jobs: + tests: + runs-on: windows-latest + name: Windows CPython ${{ matrix.python-version }} + strategy: + fail-fast: false + matrix: + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Build and install + run: | + pip install pip --upgrade + pip install ".[test]" --verbose + + - name: Test + run: | + cd tests + pytest -vv