-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (27 loc) · 782 Bytes
/
ci.yml
File metadata and controls
27 lines (27 loc) · 782 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
name: Workflow for Codecov pystixview
on: [push, pull_request]
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
run: pip install -r requirements.txt
- name: Install pytest
run: pip install pytest pytest-cov
- name: Run tests and collect coverage
run: pytest --cov pystixview
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4-beta
with:
flags: smart-tests
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}