Add contributing agreement (#23) #30
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: Validate | |
# Lints and typechecks the project whenever a pull request is opened | |
on: | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup python | |
uses: actions/setup-python@v5 | |
with: | |
cache: 'pip' | |
- name: Install dependencies | |
run: pip install --requirement requirements.txt | |
- name: Lint | |
run: ruff check | |
- name: Typecheck | |
run: mypy . |