File tree Expand file tree Collapse file tree 2 files changed +50
-4
lines changed Expand file tree Collapse file tree 2 files changed +50
-4
lines changed Original file line number Diff line number Diff line change 1
- name : Publish to PyPI
1
+ name : Publishing to Pypi
2
2
3
3
on :
4
4
release :
5
5
types : [published]
6
6
7
7
jobs :
8
- build :
8
+ test :
9
+ name : Test
9
10
runs-on : ubuntu-latest
11
+ strategy :
12
+ matrix :
13
+ python-version :
14
+ [
15
+ " 3.8" ,
16
+ " 3.9" ,
17
+ " 3.10"
18
+ ]
19
+
10
20
steps :
21
+ - uses : actions/checkout@v2
11
22
12
- - name : Publish a Python distribution to PyPI
23
+ - name : Set up Python ${{ matrix.python-version }}
24
+ uses : actions/setup-python@v2
25
+ with :
26
+ python-version : ${{ matrix.python-version }}
27
+ - name : Install Dependencies
28
+ run : |
29
+ python -m pip install --upgrade pip
30
+ pip install -e ".[test]"
31
+ - name : Run Tests
32
+ run : |
33
+ pytest
34
+ build-n-publish :
35
+ name : Build and publish
36
+ needs : [test]
37
+ runs-on : ubuntu-latest
38
+ steps :
39
+ - uses : actions/checkout@master
40
+ - name : Set up Python 3.10
41
+ uses : actions/setup-python@v3
42
+ with :
43
+ python-version : " 3.10"
44
+ - name : Install pypa/build
45
+ run : >-
46
+ python -m
47
+ pip install
48
+ build
49
+ --user
50
+ - name : Build a binary wheel and a source tarball
51
+ run : >-
52
+ python -m
53
+ build
54
+ --sdist
55
+ --wheel
56
+ --outdir dist/
57
+ - name : Publish distribution 📦 to PyPI
58
+ if : startsWith(github.ref, 'refs/tags')
13
59
uses : pypa/gh-action-pypi-publish@release/v1
14
60
with :
15
61
password : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change 9
9
10
10
setuptools .setup (
11
11
name = "kkiapay" ,
12
- version = "0.0.5 " ,
12
+ version = "0.0.6 " ,
13
13
author = "Junior Gantin" ,
14
14
15
15
description = "Community-driven Admin KkiaPay Sdk for Python" ,
You can’t perform that action at this time.
0 commit comments