Skip to content

Add ci

Add ci #1

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
pre-commit:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ readFile('.python_version') }}

Check failure on line 16 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: 16, Col: 27): Unrecognized function: 'readFile'. Located at position 1 within expression: readFile('.python_version')
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pre-commit
pre-commit install
- name: Run pre-commit
run: pre-commit run --all-files