From 755a3e9a85808a3c82054d194d28af15b404a157 Mon Sep 17 00:00:00 2001 From: Sandro Campos Date: Tue, 20 Aug 2024 11:01:35 -0400 Subject: [PATCH] Publish dependencies lock file --- .github/workflows/publish-to-pypi.yml | 16 +++++++++++++--- MANIFEST.in | 1 + 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 MANIFEST.in diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index f7cecc2e..49231cf6 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -16,8 +16,7 @@ permissions: contents: read jobs: - deploy: - + test-and-deploy: runs-on: ubuntu-latest permissions: id-token: write @@ -29,8 +28,19 @@ 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 "hipscat-import" > requirements.txt + - name: Install dev dependencies + run: pip install .[dev] + - name: Run unit tests with pytest + run: python -m pytest tests + - name: Run dask-on-ray tests with pytest + run: python -m pytest tests --use_ray + - name: Install build tools + run: pip install build - name: Build package run: python -m build - name: Publish package diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 00000000..540b7204 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +include requirements.txt \ No newline at end of file