Skip to content

Merge pull request #74 from narumiruna/python-workflow #29

Merge pull request #74 from narumiruna/python-workflow

Merge pull request #74 from narumiruna/python-workflow #29

Workflow file for this run

name: Python
on:
push:
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 3
matrix:
python-version: ["3.9", "3.10", "3.11"]
poetry-version: ["1.8.3"]
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 }}