Always give background and titles when completing goals. #155
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: Syntax Check | |
on: [push, pull_request] | |
jobs: | |
syntax-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Virtual Environment | |
run: python -m venv venv | |
- name: Install requirements and Black | |
run: venv/bin/pip install -r requirements.txt black | |
- name: Install PyRight | |
run: npm install -g pyright@">1.1.376||<1.1.376" | |
- name: Check Black Formatter | |
run: venv/bin/black -l 120 --check . | |
- name: Check PyRight Syntax | |
run: | | |
set -e | |
source venv/bin/activate | |
npx pyright |