Skip to content

Update python-package.yml #2

Update python-package.yml

Update python-package.yml #2

name: Python package
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
POETRY_VIRTUALENVS_CREATE: "false"
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- "3.10"
- "3.11"
- "3.12"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip poetry
poetry install
- name: Test
run: python -m pytest