improve workflow #477
Workflow file for this run
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: | ||
if: "!startsWith(github.event.head_commit.message, 'Merge pull request')" | ||
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' | ||
Check failure on line 33 in .github/workflows/CI.yml GitHub Actions / CIInvalid workflow file
|
||
uses: paambaati/[email protected] | ||
env: | ||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | ||
with: | ||
coverageCommand: make test-coverage-report-xml |