diff --git a/.gitea/actions/setup/action.yml b/.gitea/actions/setup/action.yml deleted file mode 100644 index 6262f4e..0000000 --- a/.gitea/actions/setup/action.yml +++ /dev/null @@ -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 diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 13c6f21..a52b98c 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -2,16 +2,15 @@ name: release on: push: - tags: ["*"] + tags: + - "[0-9]+.[0-9]+.[0-9]+" jobs: release: runs-on: ubuntu-latest 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: diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index ec82fd1..1537449 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -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