Merge pull request #349 from asenka0301/add_landing #575
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |