Skip to content

fix: remove relative paths #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 27 additions & 4 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,20 @@ jobs:
max-parallel: 3
matrix:
python-version: ["3.10", "3.11", "3.12"]
package-name: ["geos-ats", "geos-mesh", "geos-posp", "geos-timehistory", "geos-trame", "geos-utils", "geos-xml-tools", "geos-xml-viewer", "hdf5-wrapper", "pygeos-tools"]

package-name:
- geos-ats
- geos-mesh
- geos-posp
- geos-timehistory
- geos-trame
- geos-utils
- geos-xml-tools
- geos-xml-viewer
- hdf5-wrapper
- pygeos-tools
include:
- package-name: pygeos-tools
dependencies: "geos-utils geos-mesh"
steps:
- uses: actions/checkout@v4
- uses: mpi4py/setup-mpi@v1
Expand All @@ -55,7 +67,19 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install pytest yapf toml

DEPS="${{ matrix.dependencies || '' }}"

if [ -n "$DEPS" ]; then
echo "Installing additional dependencies: $DEPS"
for dep in $DEPS; do
python -m pip install ./$dep
done
fi

echo "Installing main package..."
python -m pip install ./${{ matrix.package-name }}/[test]

- name: Lint with yapf
# working-directory: ./${{ matrix.package-name }}
run: |
Expand All @@ -65,5 +89,4 @@ jobs:
run:
# python -m pytest ./${{ matrix.package-name }} --doctest-modules --junitxml=junit/test-results.xml --cov-report=xml --cov-report=html |
# wrap pytest to avoid error when no tests in the package
sh -c 'python -m pytest ./${{ matrix.package-name }}; ret=$?; [ $ret = 5 ] && exit 0 || exit $ret'

sh -c 'python -m pytest ./${{ matrix.package-name }}; ret=$?; [ $ret = 5 ] && exit 0 || exit $ret'
4 changes: 2 additions & 2 deletions pygeos-tools/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ classifiers = [
requires-python = ">= 3.10"

dependencies = [
"geos-utils @ file:./geos-utils",
"geos-mesh @ file:./geos-mesh",
"geos-utils",
"geos-mesh",
"matplotlib",
"scipy",
"mpi4py",
Expand Down