push-github-action #413
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: Install Poetry | |
run: pipx install "poetry>=1.4.0,<1.5.0" | |
- 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: poetry run python -c "import sys; print(sys.version)" | |
- name: Display pip version | |
run: poetry run python -m pip --version | |
- 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 |