Run less in CI #3
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: Draft PR Test | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
if: 'github.event.pull_request.draft' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: chartboost/ruff-action@v1 # Fail fast if there are any linting errors | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest | |
- name: Install modelskill | |
run: pip install .[test] | |
- name: Test with pytest | |
run: pytest --ignore tests/notebooks/ | |
- name: Static type check | |
run: make typecheck |