Skip to content

Continuous Integration: Upgrade checkout and setup-python actions #397

Continuous Integration: Upgrade checkout and setup-python actions

Continuous Integration: Upgrade checkout and setup-python actions #397

name: push-github-action
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# All available versions of Python:
# https://github.com/actions/python-versions/blob/main/versions-manifest.json
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13.0-alpha.5"]
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: poetry
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Display pip version
run: python -m pip --version
- name: Install pipx
run: python -m pip install pipx
- name: Install Poetry
run: python -m pipx install "poetry>=1.4.0,<1.5.0"
- name: Display Poetry version
run: poetry --version
- name: Install dependencies with Poetry
run: poetry install
- name: Lint
run: poetry run make lint
- name: Run tests
run: poetry run python -m unittest