Skip to content

Commit 43ae4d1

Browse files
committed
Update workflows
1 parent 8bcf2c8 commit 43ae4d1

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed

.github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ jobs:
66
test:
77
runs-on: ubuntu-latest
88
strategy:
9-
max-parallel: 6
9+
max-parallel: 5
1010
matrix:
1111
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414
- name: Set up Python ${{ matrix.python-version }}
15-
uses: actions/setup-python@v4
15+
uses: actions/setup-python@v5
1616
with:
1717
python-version: "${{ matrix.python-version }}"
1818
- name: Install dependencies

.github/workflows/publish.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Upload Python Package
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Set up Python
13+
uses: actions/setup-python@v3
14+
with:
15+
python-version: '3.10'
16+
- name: Install dependencies
17+
run: |
18+
python -m pip install --upgrade pip
19+
pip install build
20+
- name: Build package
21+
run: python -m build
22+
- name: Publish package
23+
uses: pypa/[email protected]
24+
with:
25+
user: __token__
26+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)