Skip to content

migrate to ruff

migrate to ruff #15

Workflow file for this run

name: Python
on:
push:
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
python-version: ["3.9"]
poetry-version: ["1.7.1"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- uses: chartboost/ruff-action@v1
- name: Install dependencies
run: pip install .
- name: Test
run: |
pip install pytest pytest-cov
pytest -v -s --cov=sharepay --cov-report=xml tests
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}