Skip to content

improve workflow

improve workflow #477

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/CI.yml (Line: 33, Col: 13): Unexpected symbol: '"push"'. Located at position 22 within expression: 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