Skip to content

Commit

Permalink
Merge pull request #32 from gokulprathin8/testing/python_installation
Browse files Browse the repository at this point in the history
Testing/python installation
  • Loading branch information
ZihengSun authored Jan 20, 2024
2 parents 15534c6 + 9471709 commit dd86106
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 237 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,25 @@ name: Publish PyGeoweaver Python 🐍 distributions 📦 to PyPI and TestPyPI
on: push

jobs:
test-installation:
name: Test Python Installation for 3.8, 3.9, 3.10, 3.11
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Package in Editable Mode
run: |
python -m pip install --upgrade pip
python -m pip install -e .
build-n-publish:
needs: test-installation
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-latest
steps:
Expand All @@ -29,4 +47,4 @@ jobs:
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include *.sh
include *.bat
Loading

0 comments on commit dd86106

Please sign in to comment.