Skip to content

Merge pull request #5 from python-thread/dependabot/pip/pip-d89c6a6933 #13

Merge pull request #5 from python-thread/dependabot/pip/pip-d89c6a6933

Merge pull request #5 from python-thread/dependabot/pip/pip-d89c6a6933 #13

Workflow file for this run

name: Run Python tests
on: [ push ]
jobs:
build:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.x"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install -U coverage pytest pytest-cov poetry
python -m poetry install
python -m poetry self add poetry-plugin-export
python -m poetry export -f requirements.txt --output requirements.txt
python -m pip install -r requirements.txt
- name: Lint with Ruff
run: |
python -m pip install -U ruff
ruff --per-file-ignores="__init__.py:F401" --per-file-ignores="__init__.py:E402" .
continue-on-error: true
- name: Test with pytest
run: |
coverage run -m pytest -v -s
- name: Generate Coverage Report
run: |
coverage report -m