Add inference script #10
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: Lint and Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
lint_and_test: | |
name: lint and test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install poetry | |
run: pipx install poetry | |
- name: Setup python and poetry | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8.16 | |
cache: poetry | |
cache-dependency-path: poetry.lock | |
- name: Install dependencies | |
run: poetry install | |
- name: Lint code | |
run: poetry run pre-commit run --all-files --show-diff-on-failure | |
- name: Run tests | |
run: poetry run pytest -v -m "not slow" -m "not dataset" |