File tree 4 files changed +36
-3
lines changed
4 files changed +36
-3
lines changed File renamed without changes.
Original file line number Diff line number Diff line change
1
+ name : Upload Python Package to PyPI
2
+
3
+ on :
4
+ release :
5
+ types : [published]
6
+
7
+ permissions :
8
+ contents : read
9
+
10
+ jobs :
11
+ deploy :
12
+
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ - uses : actions/checkout@v3
17
+ - name : Set up Python
18
+ uses : actions/setup-python@v3
19
+ with :
20
+ python-version : ' 3.x'
21
+ - name : Install dependencies
22
+ run : |
23
+ python -m pip install --upgrade pip
24
+ pip install build
25
+ - name : Build package
26
+ run : python -m build
27
+ - name : Publish package
28
+ uses : pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
29
+ with :
30
+ user : __token__
31
+ password : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change 1
1
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2
2
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3
3
4
- name : Python package
4
+ name : Python tests
5
5
6
6
on :
7
7
push :
28
28
- name : Install dependencies
29
29
run : |
30
30
python -m pip install --upgrade pip
31
- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
31
+ pip install .
32
32
- name : Test with unittest
33
33
run : |
34
34
PYTHONPATH=src python -m unittest discover -s tests/ -p 'test*.py' -v
Original file line number Diff line number Diff line change @@ -42,7 +42,9 @@ keywords = [
42
42
]
43
43
requires-python = " >=3.10"
44
44
classifiers = [
45
- " Programming Language :: Python :: 3" ,
45
+ " Programming Language :: Python :: 3.10" ,
46
+ " Programming Language :: Python :: 3.11" ,
47
+ " Programming Language :: Python :: 3.12" ,
46
48
" License :: OSI Approved :: Apache Software License" ,
47
49
" Operating System :: OS Independent" ,
48
50
]
You can’t perform that action at this time.
0 commit comments