feat: Updated .github/workflows/main.yml #40
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: python examples checks | |
on: ["push", "pull_request"] | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
run: | | |
pip install promplate[all] isort black | |
yarn global add pyright | |
- name: Run isort check | |
run: | | |
poetry run isort . --check --diff | |
- name: Run black check | |
working-directory: python | |
run: | | |
poetry run black . --check --diff | |
- name: Run pyright check | |
run: | | |
poetry run pyright |