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
|
||||
|
||||
on:
|
||||
push:
|
||||
tags: ["*"]
|
||||
workflow_run:
|
||||
workflows: [test]
|
||||
types: [completed]
|
||||
branches: ["[0-9]+.[0-9]+.[0-9]+"]
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
- uses: ./.gitea/actions/setup
|
||||
- run: pm lint -vv
|
||||
- run: pm test -vv
|
||||
- uses: https://git.shmyga.ru/InfernalGames/project-manager@master
|
||||
- run: pm build:docker -vv
|
||||
- uses: docker/login-action@v4
|
||||
with:
|
||||
|
||||
@@ -7,6 +7,8 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- 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 test -vv
|
||||
|
||||
Reference in New Issue
Block a user