Skip to content

Update python-package.yml #8

Update python-package.yml

Update python-package.yml #8

name: Python package
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, 3.10, 3.11]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Create Virtual Environment
run: |
python -m venv .venv
- name: Activate Virtual Environment
shell: bash
run: |
source .venv/bin/activate
- name: Install dependencies
run: |
poetry install
- name: Run tests
run: |
poetry run pytest