-
Notifications
You must be signed in to change notification settings - Fork 59
32 lines (31 loc) · 897 Bytes
/
codecov.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: codecov
permissions: read-all
on:
push:
branches: main
# Publish semver tags as releases.
tags: [v*.*.*]
pull_request:
branches: main
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python 3.11.5
uses: actions/setup-python@v4
with:
python-version: 3.11.5
- name: install poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: 1.4.1
- name: Install dependencies
run: poetry install --with test
- name: create required folder
run: mkdir -p /home/runner/.config/ofscraper/main_profile
- name: Run tests and collect coverage
run: poetry run pytest --cov-report term --cov-report xml:coverage.xml --cov=src
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3