Skip to content

Commit d52a43c

Browse files
committed
github actions workflow updates
1 parent 9e98195 commit d52a43c

File tree

6 files changed

+41
-72
lines changed

6 files changed

+41
-72
lines changed

.github/workflows/publish_to_pypi.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This workflow will upload a Python Package to PyPI when a release is created
2+
3+
name: Publish to PyPi
4+
5+
on:
6+
release:
7+
types: [published]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
publish-release-build:
14+
runs-on: windows-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- uses: actions/setup-python@v5
20+
with:
21+
python-version: "3.11"
22+
23+
- name: Build release distributions
24+
run: |
25+
python -m pip install poetry
26+
python -m poetry build
27+
28+
- name: Upload distributions
29+
uses: actions/upload-artifact@v4
30+
with:
31+
name: release-dists
32+
path: dist/
33+
34+
- name: Publish to PyPi
35+
env:
36+
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.POETRY_PYPI_TOKEN_PYPI }}
37+
run: |
38+
python -m poetry publish --build

.github/workflows/pylint.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ on: [push]
44

55
jobs:
66
build:
7-
runs-on: ubuntu-latest
7+
runs-on: windows-latest
88
strategy:
99
matrix:
10-
python-version: ["3.9", "3.10", "3.11"]
10+
python-version: ["3.9", "3.10", "3.11", "3.12"]
1111
steps:
1212
- uses: actions/checkout@v4
1313
- name: Set up Python ${{ matrix.python-version }}
14-
uses: actions/setup-python@v3
14+
uses: actions/setup-python@v5
1515
with:
1616
python-version: ${{ matrix.python-version }}
1717
- name: Install dependencies

.github/workflows/python-publish.yml

-69
This file was deleted.

docs/images/py_canoe_logo.jpeg

-79.1 KB
Binary file not shown.

docs/images/py_canoe_logo.png

-6.73 KB
Binary file not shown.
-5.89 KB
Binary file not shown.

0 commit comments

Comments
 (0)