This commit is contained in:
@@ -1,32 +0,0 @@
|
|||||||
name: "Setup"
|
|
||||||
description: "Setup project"
|
|
||||||
inputs:
|
|
||||||
python-version:
|
|
||||||
default: "3.14"
|
|
||||||
runs:
|
|
||||||
using: "composite"
|
|
||||||
steps:
|
|
||||||
- id: setup-python
|
|
||||||
uses: actions/setup-python@v7
|
|
||||||
with:
|
|
||||||
python-version: ${{ inputs.python-version }}
|
|
||||||
cache: "pip"
|
|
||||||
|
|
||||||
- run: |
|
|
||||||
pip install project-manager \
|
|
||||||
--index-url https://git.shmyga.ru/api/packages/InfernalGames/pypi/simple/ \
|
|
||||||
--extra-index-url https://pypi.org/simple
|
|
||||||
|
|
||||||
- run: pm setup:config -vv
|
|
||||||
|
|
||||||
# setup python venv
|
|
||||||
- run: pip install poetry
|
|
||||||
|
|
||||||
- id: cache-venv
|
|
||||||
uses: actions/cache@v6
|
|
||||||
with:
|
|
||||||
path: .venv
|
|
||||||
key: venv-${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}-v1
|
|
||||||
|
|
||||||
- if: steps.cache-venv.outputs.cache-hit != 'true'
|
|
||||||
run: pm setup:python -vv
|
|
||||||
@@ -1,17 +1,18 @@
|
|||||||
name: release
|
name: release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
workflow_run:
|
||||||
|
workflows: [test]
|
||||||
|
types: [completed]
|
||||||
tags: ["*"]
|
tags: ["*"]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@v7
|
||||||
- uses: ./.gitea/actions/setup
|
- uses: https://git.shmyga.ru/InfernalGames/project-manager@master
|
||||||
- run: pm lint -vv
|
|
||||||
- run: pm test -vv
|
|
||||||
- run: pm build:docker -vv
|
- run: pm build:docker -vv
|
||||||
- uses: docker/login-action@v4
|
- uses: docker/login-action@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@v7
|
||||||
- uses: ./.gitea/actions/setup
|
- uses: https://git.shmyga.ru/InfernalGames/project-manager@master
|
||||||
|
with:
|
||||||
|
setup-python: true
|
||||||
- run: pm lint -vv
|
- run: pm lint -vv
|
||||||
- run: pm test -vv
|
- run: pm test -vv
|
||||||
|
|||||||
Reference in New Issue
Block a user