Skip to content

Commit

Permalink
Fixing broken PyPI publishing (#350)
Browse files Browse the repository at this point in the history
* Added explicit pip install for publish workflow

* Added uninstall to publish.yml

* Adding check of git status

* Tracking test data

* Checking out lfs
  • Loading branch information
og113 authored Nov 7, 2024
1 parent 40629f6 commit baa4905
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
lfs: true

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,30 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Check git status
run: |
git status
git log -n 2
git diff
- name: Install WallGo Python package
run: |
pip uninstall WallGo
pip install . --upgrade -v
- name: Build package
run: python -m build

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
lfs: true

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
Expand Down
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,12 @@ Issues = "https://github.com/Wall-Go/WallGo/issues"
Changelog = "https://github.com/Wall-Go/WallGo/blob/main/CHANGELOG.rst"

[tool.setuptools]
packages = ["WallGo", "WallGo.PotentialTools"]
packages = [
"WallGo",
"WallGo.PotentialTools",
"WallGo.PotentialTools.Config",
"WallGo.PotentialTools.Data",
]
package-dir = {"" = "src"}
include-package-data = true

Expand Down
Binary file modified tests/TestData/N11/collisions_top_top.hdf5
Binary file not shown.
Binary file modified tests/TestData/N19/collisions_top_top.hdf5
Binary file not shown.
Binary file modified tests/TestData/N3/collisions_top_top.hdf5
Binary file not shown.

0 comments on commit baa4905

Please sign in to comment.