Skip to content

tests

tests #352

Workflow file for this run

name: tests
on:
push:
branches: [master]
pull_request:
types: [opened, synchronize]
schedule:
- cron: '0 1 * * *'
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
steps:
- name: Checkout code
uses: actions/checkout@v3.0.2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4.2.0
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
run: |
pip install pytest pytest-cov
pytest --cov=bsedata --no-cov-on-fail --cov-report xml
- name: Upload to codecov
uses: codecov/codecov-action@v3.1.0
with:
files: ./coverage.xml
fail_ci_if_error: true