Skip to content

Merge pull request #48 from crowbarsolutions/crowbarsolutions-patch-1 #42

Merge pull request #48 from crowbarsolutions/crowbarsolutions-patch-1

Merge pull request #48 from crowbarsolutions/crowbarsolutions-patch-1 #42

Workflow file for this run

---
name: Code Coverage
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: [ubuntu]
python-version: ['3.7', '3.8', '3.9', '3.10']
steps:
- name: Checking out code from GitHub
uses: actions/[email protected]
- name: Set up Python ${{ matrix.python }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements.test.txt
pip install -r requirements.txt
pip list
- name: Pytest with coverage reporting
run: pytest --cov=sharkiq --cov-report=xml
- name: Upload coverage to Codecov
if: matrix.python-version == 3.9 && matrix.os == 'ubuntu'
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: unittests
name: codecov-umbrella