Skip to content

Commit

Permalink
Use cffi v1.17.0rc1 for python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
sdb9696 committed Jul 29, 2024
1 parent 3fd147a commit 8563db0
Show file tree
Hide file tree
Showing 5 changed files with 95 additions and 57 deletions.
7 changes: 5 additions & 2 deletions .github/actions/setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ description: Install requested pipx dependencies, configure the system python, a
inputs:
poetry-install-options:
default: ""
pipx-poetry-install-args:
default: ""
poetry-version:
default: 1.8.2
python-version:
Expand Down Expand Up @@ -42,14 +44,15 @@ runs:
uses: actions/cache@v4
with:
path: ${{ steps.pipx-env-setup.outputs.pipx-cache-path }}
key: ${{ runner.os }}-${{ runner.arch }}-python-${{ inputs.python-version }}-${{ steps.setup-python.outputs.python-version }}-pipx-${{ steps.pipx-env-setup.outputs.pipx-version }}-poetry-${{ inputs.poetry-version }}
key: ${{ runner.os }}-${{ runner.arch }}-python-${{ inputs.python-version }}-${{ steps.setup-python.outputs.python-version }}-pipx-${{ steps.pipx-env-setup.outputs.pipx-version }}-poetry-${{ inputs.poetry-version }}-${{ inputs.pipx-poetry-install-args }}

- name: Install poetry
if: steps.pipx-cache.outputs.cache-hit != 'true'
id: install-poetry
shell: bash
working-directory: .
run: |-
pipx install poetry==${{ inputs.poetry-version }} --python "${{ steps.setup-python.outputs.python-path }}"
pipx install poetry==${{ inputs.poetry-version }} --python "${{ steps.setup-python.outputs.python-path }}" ${{ inputs.pipx-poetry-install-args }}
- name: Read poetry cache location
id: poetry-cache-location
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
workflow_dispatch: # to allow manual re-runs

env:
POETRY_VERSION: 1.8.2
POETRY_VERSION: 1.8.3

jobs:
linting:
Expand Down Expand Up @@ -82,6 +82,10 @@ jobs:
- os: ubuntu-latest
python-version: "3.10"
extras: true
- os: macos-latest
python-version: "3.13"
- os: windows-latest
python-version: "3.13"

steps:
- uses: "actions/checkout@v4"
Expand All @@ -91,6 +95,7 @@ jobs:
python-version: ${{ matrix.python-version }}
poetry-version: ${{ env.POETRY_VERSION }}
poetry-install-options: ${{ matrix.extras == true && '--all-extras' || '' }}
pipx-poetry-install-args: ${{ matrix.python-version == '3.13' && format('--pip-args=--constraint={0}/poetry_constraints.txt', github.workspace ) || '' }}
- name: "Run tests (no coverage)"
if: ${{ startsWith(matrix.python-version, 'pypy') }}
run: |
Expand Down
Loading

0 comments on commit 8563db0

Please sign in to comment.