Skip to content

Bump actions/setup-python from 5.2.0 to 5.3.0 (#26) #117

Bump actions/setup-python from 5.2.0 to 5.3.0 (#26)

Bump actions/setup-python from 5.2.0 to 5.3.0 (#26) #117

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Pytest
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-test.txt
- name: Run tests
run: |
pytest tests
- name: Upload coverage to Codecov
if: ${{ matrix.python-version == '3.11' }}
run: |
pytest tests -rxf -x -v -l --cov=./ --cov-report=xml > /dev/null
coverage report --skip-covered
curl -sfSL https://codecov.io/bash | bash -