add gh action for dev #1
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: test | |
# Taken from https://github.com/actions/starter-workflows/blob/main/ci/python-app.yml | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
types: [opened, edited, synchronize] | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
name: Quality Checks + Tests | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11.5" | |
- name: Install hatch | |
run: pip install hatch | |
- name: Lint | |
run: hatch run lint:all | |
- name: Run Tests | |
run: hatch run test:test |