Skip to content

Commit 16fa1c8

Browse files
committed
add alembic check
1 parent 1becd8e commit 16fa1c8

File tree

5 files changed

+21
-8
lines changed

5 files changed

+21
-8
lines changed

.github/workflows/build.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ jobs:
3131
with:
3232
version: "0.6.9"
3333

34+
- name: Install sqlite3
35+
run: |
36+
sudo apt-get update
37+
sudo apt-get install -y sqlite3
38+
3439
- run: uv sync --all-extras --dev
3540

3641
- run: echo "$PWD/.venv/bin" >> $GITHUB_PATH
@@ -39,6 +44,11 @@ jobs:
3944
with:
4045
extra-args: app # only check apps dir
4146

47+
- name: Check Alembic Migrations
48+
run: |
49+
uv run alembic upgrade heads
50+
uv run alembic check
51+
4252
build:
4353
needs: test
4454
if: github.event_name == 'push' && github.ref == 'refs/heads/main' || github.event_name == 'release'

app/internal/indexers/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def create_valued_configuration(
8484
if not isinstance(_value, IndexerConfiguration):
8585
logger.debug("Skipping %s", key)
8686
continue
87-
value: IndexerConfiguration[Any] = _value
87+
value: IndexerConfiguration[Any] = _value # pyright: ignore[reportUnknownVariableType]
8888

8989
config_value = indexer_configuration_cache.get(session, key)
9090
if config_value is None:

flake.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@
9595
};
9696
toastifyjs = builtins.fetchurl {
9797
url = "https://cdn.jsdelivr.net/npm/toastify-js";
98-
sha256 = "sha256:0v22qkipd2y4z08qkl8hd28d0bgjahn9q08nx05bxfg282zgxavg";
98+
sha256 = "sha256:06mcmh3gl8mv5c4js767crpz010wrf8hyk47cm1i3hbcf9j195n2";
9999
};
100100
toastifycss = builtins.fetchurl {
101101
url = "https://cdn.jsdelivr.net/npm/toastify-js/src/toastify.min.css";
102-
sha256 = "sha256:13z5076jlvy1p4fqmmvic3ywbi153jrs0hy8mrl1z45s2js2qgpf";
102+
sha256 = "sha256:1rgc3cx546vzkyzb3z5g7bpkdvlma7r0jwhp9mnx20f3rhfl7lwb";
103103
};
104104
in
105105

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,7 @@ reportUnknownParameterType = true
4444
reportMissingParameterType = true
4545

4646
[dependency-groups]
47-
dev = ["black>=25.1.0", "pyright>=1.1.397"]
47+
dev = [
48+
"black>=25.1.0",
49+
"pyright==1.1.398",
50+
]

uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)