Skip to content

Commit

Permalink
Add action to test build (#363)
Browse files Browse the repository at this point in the history
* add action to push to testpypi

* avoid publishing to testpypi until we know everything works

* bump min python version, don't test pypi twice

* just test build to avoid testpypi token issues

---------

Co-authored-by: Ariana Barzinpour <[email protected]>
  • Loading branch information
Ariana-B and Ariana Barzinpour authored Nov 13, 2024
1 parent fb19898 commit 4c3023c
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,28 @@ jobs:
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: false

test-build:
name: Test build
runs-on: ubuntu-latest
needs:
- integration-tests
if: |
github.event_name == 'push'
&& needs.integration-tests.result == 'success'
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
- name: Build package
run: |
python setup.py sdist bdist_wheel # Could also be python -m build
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ datasets and metadata.

pip install eodatasets3

Python 3.8+ is supported.
Python 3.10+ is supported.

## Dataset assembly

Expand Down
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@
"eodatasets3": ["eodatasets3/py.typed"],
},
license="Apache Software License 2.0",
python_requires=">=3.8",
python_requires=">=3.10",
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
],
url="https://github.com/opendatacube/eo-datasets",
Expand Down

0 comments on commit 4c3023c

Please sign in to comment.