Skip to content

Commit 3b59a46

Browse files
authored
Merge pull request #39 from VirtualPlanetaryLaboratory/phase1-testing-infrastructure
Updated tests.yml to include Python 3.14. Updated pipi-install to wor…
2 parents 573c6f7 + 83cb5c1 commit 3b59a46

70 files changed

Lines changed: 20 additions & 7154 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/pip-install.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,29 @@ on:
77

88
jobs:
99

10-
build:
10+
build:
1111
name: ${{ matrix.os }}:${{ matrix.python }}
1212
runs-on: ${{ matrix.os }}
1313
strategy:
1414
matrix:
15-
os: [ubuntu-latest, macos-latest]
16-
python: ['3.7', '3.8', '3.9']
15+
os: [macos-15, macos-15-xlarge, macos-latest, ubuntu-22.04, ubuntu-24.04]
16+
python: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919
with:
2020
submodules: true
2121
fetch-depth: 0
2222

23-
- uses: actions/setup-python@v4
23+
- uses: actions/setup-python@v5
2424
name: Install Python
2525
with:
2626
python-version: ${{ matrix.python }}
27+
allow-prereleases: true
2728

2829
- name: Build
2930
run: |
30-
python -m pip install -U pip pep517 twine setuptools_scm
31-
python -m pep517.build .
31+
python -m pip install -U pip build twine setuptools setuptools_scm wheel
32+
python -m build
3233
3334
- name: Test the sdist
3435
run: |
@@ -42,21 +43,22 @@ jobs:
4243
venv-wheel/bin/python -m pip install dist/bigplanet*.whl
4344
venv-wheel/bin/python -c "import bigplanet; print(bigplanet.__version__)"
4445
45-
- uses: actions/upload-artifact@v3
46+
- uses: actions/upload-artifact@v4
4647
with:
48+
name: dist-${{ matrix.os }}-${{ matrix.python }}
4749
path: dist/*
4850

4951
upload_pypi:
5052
needs: [build]
5153
runs-on: ubuntu-latest
5254
if: github.event_name == 'release' && github.event.action == 'published'
55+
permissions:
56+
id-token: write
5357
steps:
54-
- uses: actions/download-artifact@v3
58+
- uses: actions/download-artifact@v4
5559
with:
56-
name: artifact
60+
pattern: dist-*
5761
path: dist
62+
merge-multiple: true
5863

59-
- uses: pypa/gh-action-pypi-publish@master
60-
with:
61-
user: __token__
62-
password: ${{ secrets.pypi_password }}
64+
- uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
os: [ubuntu-22.04, ubuntu-24.04, macos-15-intel, macos-latest]
17-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
17+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
1818
exclude:
1919
# macOS latest doesn't support Python 3.9 well on ARM
2020
- os: macos-latest

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,6 @@ htmlcov/
7272
# Test output directories (generated during test runs)
7373
tests/*/BP_*/
7474
tests/*/.BP_*/
75+
76+
# Docs files
77+
docs/_build/

docs/_build/doctrees/Keys.doctree

-13.3 KB
Binary file not shown.
-18.3 KB
Binary file not shown.
-6.39 KB
Binary file not shown.
-24 KB
Binary file not shown.
-6.02 KB
Binary file not shown.
-6.42 KB
Binary file not shown.

docs/_build/doctrees/index.doctree

-12 KB
Binary file not shown.

0 commit comments

Comments
 (0)