From 332e0d58dee315c9aa5f57f20464d1097c41cb59 Mon Sep 17 00:00:00 2001 From: Szymon Szyszkowski Date: Tue, 13 Aug 2024 10:12:03 +0100 Subject: [PATCH] fix: debug v2 --- .github/workflows/tag.yaml | 86 -------------------------------------- setup.sh | 4 +- 2 files changed, 3 insertions(+), 87 deletions(-) diff --git a/.github/workflows/tag.yaml b/.github/workflows/tag.yaml index 1722468..0997101 100644 --- a/.github/workflows/tag.yaml +++ b/.github/workflows/tag.yaml @@ -51,89 +51,3 @@ jobs: # see https://github.com/actions/create-github-app-token github_token: ${{ secrets.GITHUB_TOKEN }} tag: ${{ steps.semrelease.outputs.tag }} - - - name: Store the distribution packages - uses: actions/upload-artifact@v4 - with: - name: python-package-distributions - path: dist/ - - publish-to-pypi: - needs: release - name: >- - Publish 📦 in PyPI - if: github.ref == 'refs/heads/main' - runs-on: ubuntu-latest - environment: - name: pypi - url: https://pypi.org/p/gentropy - permissions: - id-token: write # IMPORTANT: mandatory for trusted publishing - steps: - - name: Download all the dists - uses: actions/download-artifact@v4 - with: - name: python-package-distributions - path: dist/ - - name: Publish distribution 📦 to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - - publish-to-testpypi: - name: Publish 📦 in TestPyPI - needs: release - if: github.ref != 'refs/heads/main' - runs-on: ubuntu-latest - - environment: - name: testpypi - url: https://test.pypi.org/p/gentropy - - permissions: - id-token: write # IMPORTANT: mandatory for trusted publishing - - steps: - - name: Download all the dists - uses: actions/download-artifact@v4 - with: - name: python-package-distributions - path: dist/ - - name: Publish distribution 📦 to TestPyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - repository-url: https://test.pypi.org/legacy/ - - documentation: - needs: release - runs-on: ubuntu-latest - if: github.ref == 'refs/heads/main' - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - token: ${{ secrets.GITHUB_TOKEN }} - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: ${{ env.PYTHON_VERSION_DEFAULT }} - - name: Install and configure Poetry - uses: snok/install-poetry@v1 - with: - virtualenvs-create: true - virtualenvs-in-project: true - installer-parallel: true - - name: Load cached venv - id: cached-poetry-dependencies - uses: actions/cache@v4 - with: - path: .venv - key: | - venv-${{ runner.os }}-\ - ${{ env.PYTHON_VERSION_DEFAULT }}-\ - ${{ hashFiles('**/poetry.lock') }} - - name: Install dependencies - if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' - run: poetry install --no-interaction --no-root - - name: Install library - run: poetry install --without tests --no-interaction - - name: Publish docs - run: poetry run mkdocs gh-deploy --force diff --git a/setup.sh b/setup.sh index b8c451b..8c7883e 100755 --- a/setup.sh +++ b/setup.sh @@ -24,7 +24,9 @@ else echo "uv is already installed." fi source $SHELL_RC -cat $SHELL_RC +which rye +echo $PATH +cat $HOME/.rye/env rye sync rye run pre-commit install --hook-type commit-msg --hook-type pre-commit