From d480f141206aa3af4ca86526b299072acd2b865b Mon Sep 17 00:00:00 2001 From: Sandro Campos Date: Thu, 17 Oct 2024 11:34:13 -0400 Subject: [PATCH] Updat publish-to-pypi workflow --- .github/workflows/publish-to-pypi.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index f7cecc2..df6466e 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -17,7 +17,6 @@ permissions: jobs: deploy: - runs-on: ubuntu-latest permissions: id-token: write @@ -29,8 +28,14 @@ jobs: python-version: '3.10' - name: Install dependencies run: | + sudo apt-get update python -m pip install --upgrade pip - pip install build + pip install . + - name: Create lock requirements file + run: | + pip list --format=freeze --exclude "hats-import" > requirements.txt + - name: Install dependencies + run: pip install build - name: Build package run: python -m build - name: Publish package