-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 1.16 KB
/
run_test.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
33
34
35
36
name: runTest
on: [push]
jobs:
test-python-app:
runs-on: ubuntu-20.04
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: myLLMFactCheck
environment-file: env/LLMFactCheck.yml
- name: Run test
run: pytest test/ --cov=./ --cov-report xml:tests.xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
files: ./tests.xml
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
# You can use GitHub Actions without using the CODECOV_TOKEN.
# This token is used to authenticate to the Codecov service, which collects and analyzes code coverage data.
# If you don't plan to use Codecov, you can simply remove this step from your workflows.
# If you plan to use Codecov, you can simply add this step from your workflows:
# run: pytest test/ --cov=./ --cov-report xml:cov.xml
# - name: Upload coverage reports to Codecov
# uses: codecov/codecov-action@v2
# with:
# files: ./cov.xml
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}