Skip to content
Merged
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
23 changes: 3 additions & 20 deletions .github/workflows/python-3.10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,6 @@ on:

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
poetry config virtualenvs.create false
poetry install --no-root --with dev
- name: Test with pytest
run: |
make ci-test
- name: Check typing
run: |
make typing
uses: ./.github/workflows/reusable-python-test.yml
with:
python-version: "3.10"
23 changes: 3 additions & 20 deletions .github/workflows/python-3.11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,6 @@ on:

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
poetry config virtualenvs.create false
poetry install --no-root --with dev
- name: Test with pytest
run: |
make ci-test
- name: Check typing
run: |
make typing
uses: ./.github/workflows/reusable-python-test.yml
with:
python-version: "3.11"
23 changes: 3 additions & 20 deletions .github/workflows/python-3.12.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,6 @@ on:

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
poetry config virtualenvs.create false
poetry install --no-root --with dev
- name: Test with pytest
run: |
make ci-test
- name: Check typing
run: |
make typing
uses: ./.github/workflows/reusable-python-test.yml
with:
python-version: "3.12"
23 changes: 3 additions & 20 deletions .github/workflows/python-3.8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,6 @@ on:

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
poetry config virtualenvs.create false
poetry install --no-root --with dev
- name: Test with pytest
run: |
make ci-test
- name: Check typing
run: |
make typing
uses: ./.github/workflows/reusable-python-test.yml
with:
python-version: "3.8"
23 changes: 3 additions & 20 deletions .github/workflows/python-3.9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,6 @@ on:

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
poetry config virtualenvs.create false
poetry install --no-root --with dev
- name: Test with pytest
run: |
make ci-test
- name: Check typing
run: |
make typing
uses: ./.github/workflows/reusable-python-test.yml
with:
python-version: "3.9"
33 changes: 33 additions & 0 deletions .github/workflows/reusable-python-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python


on:
workflow_call:
inputs:
python-version:
required: true
type: string

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ inputs.python-version }}
uses: actions/setup-python@v4
with:
python-version: "${{ inputs.python-version }}"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
poetry config virtualenvs.create false
poetry install --no-root --with dev
- name: Test with pytest
run: |
make ci-test
- name: Check typing
run: |
make typing