Skip to content

Commit a0080e3

Browse files
committed
ci: use PyPI tokens for publishing, update test github workflow, and bump versions
1 parent bc3c062 commit a0080e3

File tree

4 files changed

+45
-72
lines changed

4 files changed

+45
-72
lines changed

.github/workflows/python-package.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/workflows/python-publish.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v5
10+
- uses: actions/setup-python@v6
11+
with:
12+
python-version: 3.13
13+
- name: Install dependencies
14+
run: python3 -m pip install build twine
15+
- name: Build and publish
16+
env:
17+
TWINE_USERNAME: __token__
18+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
19+
run: |
20+
python3 -m build
21+
python3 -m twine upload dist/*

.github/workflows/test.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Test
2+
on:
3+
push:
4+
branches: [ master ]
5+
pull_request:
6+
branches: [ master ]
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
python-version: [ 3.9, '3.10', 3.11, 3.12, 3.13 ]
13+
steps:
14+
- uses: actions/checkout@v5
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v6
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Install
20+
run: |
21+
python -m pip install -r requirements-dev.txt
22+
python setup.py install
23+
- name: Test with pytest
24+
run: pytest

0 commit comments

Comments
 (0)