Skip to content

Update python-package.yml #5

Update python-package.yml

Update python-package.yml #5

name: Python package
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
strategy:
matrix:
python-version: [3.8, 3.9, 3.10, 3.11]
poetry-version: [1.7.1]
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v3
- name: "Setup Python, Poetry and Dependencies"
uses: packetcoders/action-setup-cache-python-poetry@main
with:
python-version: ${{matrix.python-version}}
poetry-version: ${{matrix.poetry-version}}
- name: Run tests
run: |
poetry run pytest