chore(deps): pin and update dependencies (#73) #111
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: Run Tests | |
on: | |
# tests can be called from other workflows | |
workflow_call: | |
# always run tests for every push to master | |
push: | |
branches: [master] | |
# always run tests for every PR | |
pull_request: | |
branches: [master] | |
jobs: | |
pre-commit: | |
name: Run code checks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.13.1 | |
- uses: pre-commit/[email protected] | |
unittest: | |
name: Run unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.13.1 | |
- name: Install Poetry | |
uses: abatilo/[email protected] | |
with: | |
poetry-version: 1.8.4 | |
- name: Install dependencies | |
run: poetry install --no-dev | |
- name: Run unit tests | |
run: poetry run python -m unittest discover |