-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 997 Bytes
/
run_tests.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
name: run_tests
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install python
uses: actions/setup-python@v3
with:
python-version: 3.11
- name: Install dependencies
run: |
pip install poetry
make install
- name: Run tests
env:
DATABASE_URL: sqlite:///db.sqlite3
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
run: |
make test
make test_coverage
- name: Run code coverage
uses: paambaati/codeclimate-action@v5.0.0
env:
DATABASE_URL: sqlite:///db.sqlite3
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
with:
coverageCommand: make test_coverage
debug: true
- name: Run linter
run: make lint