Merge pull request #74 from stanmart/script-blocks #158
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: checks | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- uses: pre-commit/[email protected] | |
pyright: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
cache: 'pip' | |
- run: | | |
python -m venv venv | |
source venv/bin/activate | |
pip install -r requirements.txt | |
- run: echo "$PWD/venv/bin" >> $GITHUB_PATH | |
- uses: jakebailey/pyright-action@v2 | |
otree: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
cache: 'pip' | |
- run: | | |
python -m venv venv | |
source venv/bin/activate | |
pip install -r requirements.txt | |
- run: echo "$PWD/venv/bin" >> $GITHUB_PATH | |
- run: otree test |