Skip to content

Merge branch 'main' into dependabot/pip/pluggy-1.3.0 #408

Merge branch 'main' into dependabot/pip/pluggy-1.3.0

Merge branch 'main' into dependabot/pip/pluggy-1.3.0 #408

Workflow file for this run

name: Pytest
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
env:
SQLALCHEMY_DATABASE_URI: ${{ secrets.SQLALCHEMY_DATABASE_URI }}
strategy:
matrix:
python-version: ["3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests with pytest
run: pytest -s
- name: Get coverage report
run: |
pip install coverage
coverage run -m pytest
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}