Skip to content
Closed
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
13 changes: 11 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@ on:
push:
branches:
- master
- r*
tags:
- '*'
pull_request:
branches:
- master
- r*
release:
types: [published]
workflow_dispatch:

jobs:
Expand All @@ -15,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10"]
python-version: ["3.10", "3.11", "3.12", "3.13"]

steps:
- name: Checkout
Expand All @@ -33,8 +39,10 @@ jobs:
- name: Build wheels
run: |
python -m build --wheel --sdist
cd tensorboard_plugin && python -m build --wheel --sdist && cd ..
mkdir wheelhouse
mv dist/* wheelhouse/
mv tensorboard_plugin/dist/* wheelhouse/
- name: List and check wheels
run: |
pip install twine pkginfo>=1.11.0
Expand All @@ -49,7 +57,7 @@ jobs:
upload_to_pypi:
name: Upload to PyPI
runs-on: ubuntu-latest
if: (github.event_name == 'release' && startsWith(github.ref, 'refs/tags')) || (github.event_name == 'workflow_dispatch')
if: (github.event_name == 'release' && github.event.action == 'published') || (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')) || (github.event_name == 'workflow_dispatch')
needs: [build]
environment:
name: pypi
Expand All @@ -70,6 +78,7 @@ jobs:
- name: Upload to PyPI
uses: pypa/gh-action-pypi-publish@release/v1.12
with:
password: ${{ secrets.PYPI_API_TOKEN || secrets.PYPI_TOKEN || secrets.PYPI_PASSWORD }}
packages_dir: wheels/
repository_url: https://pypi.org/legacy/
verify_metadata: false
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
if: (github.event_name != 'pull_request')

- name: Set up Python 3.9
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '3.10'
cache: 'pip'
cache-dependency-path: |
setup.py
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

strategy:
matrix:
python-version: ['3.9', '3.10']
python-version: ['3.10', '3.11', '3.12', '3.13']
package-root-dir: ['./', './tensorboard_plugin']

steps:
Expand Down
Loading
Loading