From 4eed02869f93ebc4245ba43a85965ea29d37bcf5 Mon Sep 17 00:00:00 2001 From: GreatBahram Date: Mon, 3 Mar 2025 09:23:54 +0100 Subject: [PATCH 1/2] it turnsout we have python-version but pyproject.toml --- .github/workflows/publish.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6b79769..7e6a0df 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,16 +4,17 @@ on: workflow_dispatch: jobs: - test: + publish: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Install uv uses: astral-sh/setup-uv@v5 - - name: "Set up Python" + - name: Set up Python uses: actions/setup-python@v5 with: - python-version-file: ".python-version" + cache: pip + cache-dependency-path: pyproject.toml - name: Install the project run: uv sync --all-extras --dev - name: Build the package From 9e248446b26afae7da995b3a1d97c619530bc2a7 Mon Sep 17 00:00:00 2001 From: GreatBahram Date: Mon, 3 Mar 2025 09:26:05 +0100 Subject: [PATCH 2/2] let's remove the cache keyword --- .github/workflows/publish.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7e6a0df..b7fc5a3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,7 +13,6 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - cache: pip cache-dependency-path: pyproject.toml - name: Install the project run: uv sync --all-extras --dev