build(deps): bump actions/setup-python from 5.0.0 to 5.1.0 (#197) #275
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 Python Unit Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
name: tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.1.3 | |
- name: Install Python | |
uses: actions/setup-python@v5.1.0 | |
with: | |
python-version: 3.8 | |
- name: Install Poetry | |
run: pip install poetry | |
- name: Set Poetry config | |
run: | | |
poetry config virtualenvs.in-project false | |
poetry config virtualenvs.path ~/.virtualenvs | |
- name: Install Dependencies | |
run: poetry install | |
if: steps.cache.outputs.cache-hit != 'true' | |
- name: Run tests | |
run: poetry run pytest |