Skip to content

Update main.yml to 3.10 #4

Update main.yml to 3.10

Update main.yml to 3.10 #4

Workflow file for this run

name: Python CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10'] # Updated to test only Python 3.9 and above
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 dependencies
run: |
pip install poetry
poetry install
- name: Lint with Ruff
run: |
poetry run ruff .
- name: Run tests with pytest
run: |
poetry run pytest
- name: Check code coverage
run: |
poetry run coverage run -m pytest
poetry run coverage report -m --fail-under=80