Skip to content

Change commands to use directly poetry #6

Change commands to use directly poetry

Change commands to use directly poetry #6

Workflow file for this run

name: Python CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
lint-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11']
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install --no-root
- name: Lint with pylint
run: |
poetry run pylint --rcfile=.pylintrc src
- name: Test with pytest
run: |
poetry run pytest -s