Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions .github/actions/prepare/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Prepare
description:
inputs:
os:
required: true
python-version:
required: true
poetry-version:
Expand All @@ -21,13 +23,20 @@ runs:
~/.cache/pypoetry/
key: ignore-me
restore-keys: |
poetry-installation-and-cache-${{ inputs.python-version }}-${{ inputs.poetry-version }}-
poetry-installation-and-cache-${{ inputs.os }}-${{ inputs.python-version }}-${{ inputs.poetry-version }}-
- name: Set up Python ${{ inputs.python-version }}
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: ${{ inputs.python-version }}
- name: fix installation on macos using /tmp dir
if: runner.os == 'macOS'
shell: bash
run: |
echo "PIPX_HOME=/tmp/.cache/pipx" >> "$GITHUB_ENV"
echo "PIPX_BIN_DIR=/tmp/.local/bin" >> "$GITHUB_ENV"
echo "/tmp/.local/bin" >> $GITHUB_PATH
- name: Install Poetry
shell: bash
run: |
pipx install poetry==${{ inputs.poetry-version }}
poetry env use ${{ inputs.python-version }}
pipx install poetry==${{ inputs.poetry-version }} --python $(which python${{ inputs.python-version }})
pipx ensurepath
25 changes: 23 additions & 2 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,35 @@ jobs:
poetry run tests/time-startup.sh

test:
runs-on: ubuntu-22.04
runs-on: ${{ matrix.os }}
timeout-minutes: 15
continue-on-error: true #${{ matrix.experimental }}
strategy:
matrix:
os: [ubuntu-22.04]
python-version: ["3.9", "3.10", "3.11", "3.12"]
name: test on Python ${{ matrix.python-version }}
experimental: [false]
include: # Add given combinations to the matrix allowing jobs to fail
- os: macos-13
python-version: "3.10"
experimental: true
- os: macos-14
python-version: "3.11"
experimental: true
- os: macos-15
python-version: "3.12"
experimental: true
- os: windows-2025
python-version: "3.11"
experimental: true
- os: windows-2022
python-version: "3.12"
experimental: true
name: test on ${{ matrix.os }}, Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install system packages
if: runner.os == 'Linux'
run: |
sudo apt-get install \
libvoikko1 \
Expand All @@ -74,6 +94,7 @@ jobs:
id: prepare
uses: ./.github/actions/prepare
with:
os: ${{ matrix.os }}
python-version: ${{ matrix.python-version }}
poetry-version: ${{ env.POETRY_VERSION }}
- name: Install Python dependencies
Expand Down
Loading