Skip to content

Commit 86f025c

Browse files
committed
remove github action from generation
1 parent 81386d2 commit 86f025c

2 files changed

Lines changed: 34 additions & 12 deletions

File tree

.github/workflows/python.yml

Lines changed: 33 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,21 @@
1-
# NOTE: This file is auto generated by OpenAPI Generator.
2-
# URL: https://openapi-generator.tech
3-
#
4-
# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
5-
61
name: helloasso_python Python package
72

8-
on: [push, pull_request]
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
workflow_dispatch:
98

109
jobs:
1110
build:
12-
1311
runs-on: ubuntu-latest
14-
strategy:
15-
matrix:
16-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1712

1813
steps:
1914
- uses: actions/checkout@v4
20-
- name: Set up Python ${{ matrix.python-version }}
15+
- name: Set up Python
2116
uses: actions/setup-python@v4
2217
with:
23-
python-version: ${{ matrix.python-version }}
18+
python-version: '3.13'
2419
- name: Install dependencies
2520
run: |
2621
python -m pip install --upgrade pip
@@ -29,3 +24,29 @@ jobs:
2924
- name: Test with pytest
3025
run: |
3126
pytest --cov=helloasso_python
27+
- name: Build package
28+
run: |
29+
pip install build
30+
python -m build
31+
- name: upload dists
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: release-dists
35+
path: dist/
36+
37+
pypi-publish:
38+
runs-on: ubuntu-latest
39+
needs:
40+
- build
41+
permissions:
42+
id-token: write
43+
44+
steps:
45+
- name: Retrieve release distributions
46+
uses: actions/download-artifact@v4
47+
with:
48+
name: release-dists
49+
path: dist/
50+
51+
- name: Publish release distributions to PyPI
52+
uses: pypa/gh-action-pypi-publish@release/v1.12

.openapi-generator-ignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@
2323
#!docs/README.md
2424

2525
README.md
26+
.github/workflows/python.yml

0 commit comments

Comments
 (0)