forked from mhdadk/stack-exchange-backup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.ps1
executable file
·26 lines (25 loc) · 877 Bytes
/
release.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env pwsh
# $env:SC_GITHUB_TOKEN = ...
uv self update &&
security-constraints --min-severity moderate --output ./requirements/constraints.txt &&
uv pip compile `
--constraint ./requirements/constraints.txt `
--output-file ./requirements/prod.txt `
./pyproject.toml &&
uv pip compile `
--extra dev `
--constraint ./requirements/prod.txt `
--constraint ./requirements/constraints.txt `
--output-file ./requirements/dev.txt `
./pyproject.toml &&
uv pip sync ./requirements/dev.txt &&
uv pip install --editable . &&
python -m openapi_spec_validator --errors all ./resources/openapi/openapi.yaml &&
python -m datamodel_code_generator &&
python -m ruff check &&
python -m pylint ./src/ ./tests/ &&
npm update pyright &&
npm exec pyright &&
python -m pytest -vvr A --no-summary ./tests/ &&
python -m bumpver update --patch --no-fetch &&
? .