Update Test CI triggers #7
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 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test_and_publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup environment | |
uses: actions/checkout@v3 | |
- run: pipx install poetry | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
cache: 'poetry' | |
- run: poetry install | |
- name: Lint check | |
run: make lint_ci | |
- name: Run tests | |
run: make test |