-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (30 loc) · 981 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
36
37
38
39
name: Test
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version-file: '.python-version'
- name: Install Poetry
uses: snok/install-poetry@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