-
-
Notifications
You must be signed in to change notification settings - Fork 14
33 lines (26 loc) · 901 Bytes
/
main.yml
File metadata and controls
33 lines (26 loc) · 901 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
30
31
32
33
name: Run Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e . # Install yaqs in editable mode
pip install -r requirements.txt # If you have additional dependencies
pip install pytest pytest-cov # Ensure pytest and coverage are installed
- name: Run tests with coverage
run: |
pytest --cov=yaqs --cov-report=xml --cov-report=term
- name: Upload coverage to Codecov (optional)
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml