Skip to content

Commit

Permalink
Test against multiple python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
doshitan committed Dec 26, 2024
1 parent 8a1bbff commit d3c83c2
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/ci-pipx.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
name: CI (pip/pipx/native)

on:
push:
branches:
- main
pull_request:
workflow_dispatch:
workflow_call:
inputs:
python-version:
required: true

jobs:
lint:
Expand All @@ -16,7 +15,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
python-version: ${{ inputs.python-version }}
- name: install poetry
run: pip install poetry

Expand All @@ -35,7 +34,7 @@ jobs:
- uses: ./.github/actions/configure-git
- uses: actions/setup-python@v5
with:
python-version: "3.13"
python-version: ${{ inputs.python-version }}
- name: install poetry
run: pip install poetry

Expand All @@ -53,7 +52,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
python-version: ${{ inputs.python-version }}

- name: Install with pipx
run: pipx install .
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/ci-py.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CI (python)

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
ci:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13"]

steps:
- uses: ./.github/workflows/ci-pipx.yml
with:
python-version: ${{ matrix.version }}

0 comments on commit d3c83c2

Please sign in to comment.