Skip to content

Commit

Permalink
Merge pull request #381 from astronomy-commons/issue/362/bundle-depen…
Browse files Browse the repository at this point in the history
…dencies-lock

Bundle dependency requirements with release
  • Loading branch information
camposandro authored Aug 22, 2024
2 parents d87041a + 755a3e9 commit 9eb59f1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ permissions:
contents: read

jobs:
deploy:

test-and-deploy:
runs-on: ubuntu-latest
permissions:
id-token: write
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include requirements.txt

0 comments on commit 9eb59f1

Please sign in to comment.