Skip to content

update github poetry action #4

update github poetry action

update github poetry action #4

name: pypi-deployment
on: [push]
jobs:
main-package:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest] #, macos-latest, windows-latest
poetry-version: ["1.8.3"]
python-version: ["3.12" ]
env:
OS: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.5.1
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Install dependencies
run: |
poetry install --no-interaction
- name: Run tests
run: |
poetry run pytest
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v3