Skip to content
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
23 changes: 10 additions & 13 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-13, macos-14, macos-15, ubuntu-22.04, ubuntu-24.04, windows-2022, windows-2025]
python-version: ["3.9", "3.10", "3.11", "3.12"]
os: [macos-14, macos-15, macos-26, ubuntu-22.04, ubuntu-24.04, windows-2022, windows-2025]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -42,26 +42,25 @@ jobs:
run: |
coverage run -m pytest --disable-warnings -p no:warnings test
- name: Coveralls
if: startsWith(matrix.os, 'ubuntu') && endsWith(matrix.python-version, 3.9)
uses: AndreMiras/coveralls-python-action@develop
if: startsWith(matrix.os, 'ubuntu') && endsWith(matrix.python-version, '3.14')
uses: coverallsapp/github-action@v2
with:
parallel: true
flag-name: Unit Test

upload_pypi:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
if: github.event_name == 'push'
runs-on: ubuntu-latest
environment: pypi
permissions:
id-token: write
# or, alternatively, upload to PyPI on every tag starting with 'v' (remove on: release above to use this)
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.11'
python-version: '3.x'

- name: build wheel
run: |
Expand All @@ -79,8 +78,6 @@ jobs:

- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.test_pypi_password }}
repository-url: https://test.pypi.org/legacy/
skip-existing: true

Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,16 @@ on:
jobs:
upload_pypi:
runs-on: ubuntu-latest
environment: pypi
permissions:
id-token: write
# or, alternatively, upload to PyPI on every tag starting with 'v' (remove on: release above to use this)
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.11'
python-version: '3.x'

- name: build wheel
run: |
Expand All @@ -35,6 +34,4 @@ jobs:

- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.test_pypi_password }}
repository-url: https://upload.pypi.org/legacy/
5 changes: 3 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ download_url = https://github.com/cylammarco/WDPhotTools
classifiers =
License :: OSI Approved :: BSD License
Programming Language :: Python :: 3
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
Programming Language :: Python :: 3.14
Operating System :: OS Independent

[options]
Expand All @@ -30,7 +31,7 @@ packages = find:
include_package_data = True
python_requires = >=3.9
install_requires =
numpy>=1.19, <2
numpy>=1.19
scipy>=1.7.3
matplotlib>=3.5
emcee>=3.0
Expand Down
Loading