Bump psutil from 5.9.8 to 6.1.0 #10
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 Migrations' | |
on: | |
push: | |
paths: | |
- migrations/** | |
workflow_dispatch: {} | |
jobs: | |
test: | |
services: | |
postgres: | |
image: postgres:16 | |
env: | |
POSTGRES_USER: lightning | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: postgres | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 5432:5432 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
- name: Install Project | |
run: poetry install --no-interaction --no-ansi -vv | |
- name: Run All Migrations | |
run: | | |
poetry run lightning db upgrade | |
env: | |
GHA_POSTGRES_HOST: 123 |