diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index f7cecc2..49231cf 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 0000000..540b720 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +include requirements.txt \ No newline at end of file