-
Notifications
You must be signed in to change notification settings - Fork 5
29 lines (29 loc) · 893 Bytes
/
.codecov.yml
File metadata and controls
29 lines (29 loc) · 893 Bytes
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
name: Code Coverage
on: [push, pull_request]
jobs:
run:
runs-on: ubuntu-22.04
steps:
- name: Checkout code coverage
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install pytest
run: pip install pytest-cov
- name: Install poetry
run: pip install poetry
- name: Configure poetry
run: poetry config virtualenvs.create false
- name: Install dependencies
run: poetry install
- name: Run tests and collect coverage
run: coverage run --omit="./tests" -m pytest
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5.3.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: IFCA-Advanced-Computing/anjana