-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (26 loc) · 884 Bytes
/
test.yaml
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
name: Test
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install the latest version of rye
uses: eifinger/setup-rye@v1
- name: Install development dependencies
run: make install-dev
- name: Check for correct formatting, static typing, linting, etc...
run: |
make check-format
- name: Test with pytest
env:
RADIO_FRANCE_API_HOST: https://openapi.radiofrance.fr/v1/graphql
RADIO_FRANCE_API_HEALTHCHECK: https://openapi.radiofrance.fr/v1/.well-known/apollo/server-health
RADIO_FRANCE_API_TOKEN: ${{ secrets.RADIO_FRANCE_API_TOKEN }}
run: |
make test
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v3
with:
# codecov sometimes return error without reason
fail_ci_if_error: false