ci(action): use project-manager action
test / test (push) Successful in 44s

This commit is contained in:
2026-09-30 15:35:08 +03:00
parent 1d1ba69cc8
commit 5e2380a95b
3 changed files with 10 additions and 38 deletions
-32
View File
@@ -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
+7 -5
View File
@@ -1,17 +1,19 @@
name: release name: release
on: on:
push: workflow_run:
tags: ["*"] workflows: [test]
types: [completed]
#branches: ["[0-9]+.[0-9]+.[0-9]+"]
branches: ["master"]
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:
+3 -1
View File
@@ -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