Skip to content

Commit

Permalink
Add Codecov workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
christianhelle committed Feb 12, 2024
1 parent 07db5d3 commit 8d65043
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Codecov

on:
workflow_dispatch:
push:

jobs:
build:
name: 👌 Verify build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.12

- name: Install test requirements
run: pip install -r requirements.txt

- name: Install the package
run: python setup.py develop

- name: Run Tests
run: python -m pytest tests/ -v --cov --cov-report=xml --cov-report=html

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
env:
token: ${{ secrets.CODECOV_TOKEN }}
slug: christianhelle/autofaker

0 comments on commit 8d65043

Please sign in to comment.