chore(deps): update all non-major dependencies #187
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: Tests | |
on: | |
push: | |
branches: | |
- '**' | |
- '!main' | |
workflow_dispatch: | |
env: | |
# For starting up bitnami/mysql | |
MYSQL_PASSWORD: root | |
MYSQL_DATABASE: rt | |
# Additionally for FastAPI container | |
MYSQL_HOST: 127.0.0.1 | |
MYSQL_USER: root | |
jobs: | |
build: | |
name: Tests | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version-file: '.python-version' | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
version: 1.7.1 | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
installer-parallel: true | |
# https://github.com/snok/install-poetry | |
- name: Install dependencies | |
run: | | |
poetry install | |
- name: Run pytest | |
env: | |
MYSQL_PASSWORD: ${{ env.MYSQL_PASSWORD }} | |
MYSQL_DATABASE: ${{ env.MYSQL_DATABASE }} | |
MYSQL_HOST: ${{ env.MYSQL_HOST }} | |
MYSQL_USER: ${{ env.MYSQL_USER }} | |
run: | | |
make db | |
poetry run pytest -s --verbosity=3 |