-
Notifications
You must be signed in to change notification settings - Fork 3
56 lines (55 loc) · 1.6 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Workflow for Codecov Action
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: npm install
- name: Lint
run: npm run lint
- name: Run tests and collect coverage
run: npm run test
- name: Upload to Codecov
uses: codecov/codecov-action@v4-beta
with:
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# os: [macos-latest, windows-latest, ubuntu-latest]
os: [macos-latest, ubuntu-latest]
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Install python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install python dependencies
run: pip install -r app/requirements.txt
- name: Run ATS
uses: ./
with:
fail_ci_if_error: true
folders_to_exclude: node_modules
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
CODECOV_STATIC_TOKEN: ${{ secrets.CODECOV_STATIC_TOKEN }}
- name: Run Tests and collect coverage
run: pytest --cov app ${{ env.CODECOV_ATS_TESTS }}
- name: Upload to Codecov
uses: codecov/codecov-action@v4-beta
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
flags: smart-tests
plugins: pycoverage,compress-pycoverage