-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (35 loc) · 1.01 KB
/
ci.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: Test
on: [push, pull_request]
permissions:
contents: read
actions: read
checks: write
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: aicoach311-ci
environment-file: environment-cp311-ci.yml
python-version: 3.11
auto-activate-base: false
- name: Test with pytest
run: |
pytest tests/unit --doctest-modules --junitxml=tests/test-results.xml --cov=. --cov-report=xml --cov-report=html
env:
AICOACH_MONGO_DSN: mongodb://localhost:27017
AICOACH_ASSISTANT_ID: "XXX"
AICOACH_OPENAI_API_KEY: "YYY"
AICOACH_OPENAI_ORG_ID: "ZZZ"
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: pytest results
path: tests/test-results.xml
reporter: java-junit