mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-25 15:10:41 +01:00
* update poetry to 1.5.1 inside workflows * update lock file to poetry 1.5.1 * test run 1 * test run 2 * run 3 * try different sortorder * cli should use --no-root here are the refereneces. https://python-poetry.org/docs/basic-usage/#installing-dependencies-only https://pip.pypa.io/en/stable/topics/local-project-installs/#regular-installs * cache migrations aswell * test flake * optimize docker image for regtest building * playng * remove test run 1 * remove run 2 * remove run 3 * run 4 * run 6 * run 7 * run 8 * run 9 * run 10
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
name: migrations
|
|
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
sqlite-to-postgres:
|
|
runs-on: ubuntu-latest
|
|
services:
|
|
postgres:
|
|
image: postgres:latest
|
|
env:
|
|
POSTGRES_USER: lnbits
|
|
POSTGRES_PASSWORD: lnbits
|
|
POSTGRES_DB: migration
|
|
ports:
|
|
# maps tcp port 5432 on service container to the host
|
|
- 5432:5432
|
|
options: >-
|
|
--health-cmd pg_isready
|
|
--health-interval 10s
|
|
--health-timeout 5s
|
|
--health-retries 5
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.9"]
|
|
poetry-version: ["1.5.1"]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up Poetry ${{ matrix.poetry-version }}
|
|
uses: abatilo/actions-poetry@v2
|
|
with:
|
|
poetry-version: ${{ matrix.poetry-version }}
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
cache: "poetry"
|
|
- name: Install dependencies
|
|
run: |
|
|
poetry install
|
|
sudo apt install unzip
|
|
- name: Run migrations
|
|
run: |
|
|
make test-migration
|