-
Notifications
You must be signed in to change notification settings - Fork 102
37 lines (34 loc) · 1.02 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
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.8.x
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
pip install poetry
poetry install
- name: Run checks
run: make check
env:
SECRET_KEY: secret
GITHUB_AUTH_TOKEN: secret
GITHUB_WEBHOOK_TOKEN: secret
DB_ENGINE: SQLite
- name: Publish code coverage report
if: github.event_name == 'push' && github.repository == 'hexlet/hexlet-friends'
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: make test-coverage-report-xml