Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
951cb06b4c | ||
|
|
80e9a80edd | ||
|
|
b3412d9e53 |
@@ -6,37 +6,15 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
needs: test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# repo
|
- uses: actions/checkout@v7
|
||||||
- name: Check out repository
|
- uses: ./.gitea/actions/setup
|
||||||
uses: actions/checkout@v7
|
- run: pm build:docker -vv
|
||||||
# python
|
- uses: docker/login-action@v4
|
||||||
- name: Set up python
|
|
||||||
id: setup-python
|
|
||||||
uses: actions/setup-python@v7
|
|
||||||
with:
|
|
||||||
python-version: "3.14"
|
|
||||||
cache: "pip"
|
|
||||||
# project-manager
|
|
||||||
- name: Install Project Manager
|
|
||||||
run: |
|
|
||||||
pip install project-manager \
|
|
||||||
--index-url https://git.shmyga.ru/api/packages/InfernalGames/pypi/simple/ \
|
|
||||||
--extra-index-url https://pypi.org/simple
|
|
||||||
# setup
|
|
||||||
- name: Setup config
|
|
||||||
run: pm setup:config -vv
|
|
||||||
# build
|
|
||||||
- name: Build docker
|
|
||||||
run: pm build:docker -vv
|
|
||||||
# login docker
|
|
||||||
- name: Login to Docker Hub
|
|
||||||
uses: docker/login-action@v4
|
|
||||||
with:
|
with:
|
||||||
registry: git.shmyga.ru
|
registry: git.shmyga.ru
|
||||||
username: ${{ vars.DOCKERHUB_USERNAME }}
|
username: ${{ vars.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
# pubish
|
- run: pm publish:docker -vv
|
||||||
- name: Publish docker
|
|
||||||
run: pm publish:docker -vv
|
|
||||||
|
|||||||
@@ -9,4 +9,4 @@ jobs:
|
|||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@v7
|
||||||
- uses: ./.gitea/actions/setup
|
- uses: ./.gitea/actions/setup
|
||||||
- run: pm lint -vv
|
- run: pm lint -vv
|
||||||
- run: pm test -vv
|
# - run: pm test -vv
|
||||||
|
|||||||
@@ -68,6 +68,12 @@ async def get_weather_days(request: AppRequest, weather_api: WeatherApiDepends,
|
|||||||
return build_weather_response(request, response)
|
return build_weather_response(request, response)
|
||||||
|
|
||||||
|
|
||||||
|
# TODO: tag mode route deprecated, used in tizen app
|
||||||
|
@router.get("/{provider}/{location}/tag/days-{days}", response_class=RedirectResponse)
|
||||||
|
async def get_tag_days(days: int):
|
||||||
|
return RedirectResponse(f"../days/{days}")
|
||||||
|
|
||||||
|
|
||||||
# TODO: tag mode route deprecated, used in tizen app
|
# TODO: tag mode route deprecated, used in tizen app
|
||||||
@router.get("/{provider}/{location}/{mode:str}/{date}", response_class=HTMLResponse)
|
@router.get("/{provider}/{location}/{mode:str}/{date}", response_class=HTMLResponse)
|
||||||
async def get_weather_day(
|
async def get_weather_day(
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "gallery"
|
name = "gallery"
|
||||||
description = ""
|
description = ""
|
||||||
version = "0.10.1"
|
version = "0.10.2"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
authors = [{ name = "shmyga", email = "shmyga.z@gmail.com" }]
|
authors = [{ name = "shmyga", email = "shmyga.z@gmail.com" }]
|
||||||
requires-python = '>=3.14,<4.0'
|
requires-python = '>=3.14,<4.0'
|
||||||
|
|||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "gallery",
|
"name": "gallery",
|
||||||
"version": "0.10.1",
|
"version": "0.10.2",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "gallery",
|
"name": "gallery",
|
||||||
"version": "0.10.1",
|
"version": "0.10.2",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@popperjs/core": "^2.11.8",
|
"@popperjs/core": "^2.11.8",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "gallery",
|
"name": "gallery",
|
||||||
"version": "0.10.1",
|
"version": "0.10.2",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "webpack --mode production",
|
"build": "webpack --mode production",
|
||||||
|
|||||||
Reference in New Issue
Block a user