mirror of
https://github.com/markbeep/AudioBookRequest.git
synced 2025-12-30 18:19:34 -06:00
add alembic check
This commit is contained in:
10
.github/workflows/build.yaml
vendored
10
.github/workflows/build.yaml
vendored
@@ -31,6 +31,11 @@ jobs:
|
||||
with:
|
||||
version: "0.6.9"
|
||||
|
||||
- name: Install sqlite3
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y sqlite3
|
||||
|
||||
- run: uv sync --all-extras --dev
|
||||
|
||||
- run: echo "$PWD/.venv/bin" >> $GITHUB_PATH
|
||||
@@ -39,6 +44,11 @@ jobs:
|
||||
with:
|
||||
extra-args: app # only check apps dir
|
||||
|
||||
- name: Check Alembic Migrations
|
||||
run: |
|
||||
uv run alembic upgrade heads
|
||||
uv run alembic check
|
||||
|
||||
build:
|
||||
needs: test
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main' || github.event_name == 'release'
|
||||
|
||||
@@ -84,7 +84,7 @@ def create_valued_configuration(
|
||||
if not isinstance(_value, IndexerConfiguration):
|
||||
logger.debug("Skipping %s", key)
|
||||
continue
|
||||
value: IndexerConfiguration[Any] = _value
|
||||
value: IndexerConfiguration[Any] = _value # pyright: ignore[reportUnknownVariableType]
|
||||
|
||||
config_value = indexer_configuration_cache.get(session, key)
|
||||
if config_value is None:
|
||||
|
||||
@@ -95,11 +95,11 @@
|
||||
};
|
||||
toastifyjs = builtins.fetchurl {
|
||||
url = "https://cdn.jsdelivr.net/npm/toastify-js";
|
||||
sha256 = "sha256:0v22qkipd2y4z08qkl8hd28d0bgjahn9q08nx05bxfg282zgxavg";
|
||||
sha256 = "sha256:06mcmh3gl8mv5c4js767crpz010wrf8hyk47cm1i3hbcf9j195n2";
|
||||
};
|
||||
toastifycss = builtins.fetchurl {
|
||||
url = "https://cdn.jsdelivr.net/npm/toastify-js/src/toastify.min.css";
|
||||
sha256 = "sha256:13z5076jlvy1p4fqmmvic3ywbi153jrs0hy8mrl1z45s2js2qgpf";
|
||||
sha256 = "sha256:1rgc3cx546vzkyzb3z5g7bpkdvlma7r0jwhp9mnx20f3rhfl7lwb";
|
||||
};
|
||||
in
|
||||
|
||||
|
||||
@@ -44,4 +44,7 @@ reportUnknownParameterType = true
|
||||
reportMissingParameterType = true
|
||||
|
||||
[dependency-groups]
|
||||
dev = ["black>=25.1.0", "pyright>=1.1.397"]
|
||||
dev = [
|
||||
"black>=25.1.0",
|
||||
"pyright==1.1.398",
|
||||
]
|
||||
|
||||
8
uv.lock
generated
8
uv.lock
generated
@@ -213,7 +213,7 @@ requires-dist = [
|
||||
[package.metadata.requires-dev]
|
||||
dev = [
|
||||
{ name = "black", specifier = ">=25.1.0" },
|
||||
{ name = "pyright", specifier = ">=1.1.397" },
|
||||
{ name = "pyright", specifier = "==1.1.398" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -898,15 +898,15 @@ wheels = [
|
||||
|
||||
[[package]]
|
||||
name = "pyright"
|
||||
version = "1.1.397"
|
||||
version = "1.1.398"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "nodeenv" },
|
||||
{ name = "typing-extensions" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/92/23/cefa10c9cb198e0858ed0b9233371d62bca880337f628e58f50dfdfb12f0/pyright-1.1.397.tar.gz", hash = "sha256:07530fd65a449e4b0b28dceef14be0d8e0995a7a5b1bb2f3f897c3e548451ce3", size = 3818998 }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/24/d6/48740f1d029e9fc4194880d1ad03dcf0ba3a8f802e0e166b8f63350b3584/pyright-1.1.398.tar.gz", hash = "sha256:357a13edd9be8082dc73be51190913e475fa41a6efb6ec0d4b7aab3bc11638d8", size = 3892675 }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/01/b5/98ec41e1e0ad5576ecd42c90ec363560f7b389a441722ea3c7207682dec7/pyright-1.1.397-py3-none-any.whl", hash = "sha256:2e93fba776e714a82b085d68f8345b01f91ba43e1ab9d513e79b70fc85906257", size = 5693631 },
|
||||
{ url = "https://files.pythonhosted.org/packages/58/e0/5283593f61b3c525d6d7e94cfb6b3ded20b3df66e953acaf7bb4f23b3f6e/pyright-1.1.398-py3-none-any.whl", hash = "sha256:0a70bfd007d9ea7de1cf9740e1ad1a40a122592cfe22a3f6791b06162ad08753", size = 5780235 },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
||||
Reference in New Issue
Block a user