File tree Expand file tree Collapse file tree 3 files changed +35
-3
lines changed
Expand file tree Collapse file tree 3 files changed +35
-3
lines changed Original file line number Diff line number Diff line change 1- name : PySDM
1+ name : tests+pypi
22
33defaults :
44 run :
1111 branches : [ main ]
1212 schedule :
1313 - cron : ' 0 13 * * 4'
14+ release :
15+ types : [published]
1416
1517jobs :
1618 build :
5355# uses: mxschmitt/action-tmate@v3
5456# with:
5557# limit-access-to-actor: true
58+
59+ dist :
60+ runs-on : ubuntu-latest
61+ needs : [build]
62+ steps :
63+ - uses : actions/checkout@v2
64+ with :
65+ fetch-depth : 0 # https://github.com/pypa/setuptools_scm/issues/480
66+ - uses : actions/setup-python@v2
67+ with :
68+ python-version : " 3.10"
69+
70+ - run : pip install twine build
71+
72+ - run : |
73+ python -m build 2>&1 | tee build.log
74+ exit `fgrep -i warning build.log | grep -v impl_numba/warnings.py | wc -l`
75+
76+ - run : twine check --strict dist/*
77+
78+ - if : github.event_name == 'push' && github.ref == 'refs/heads/main'
79+ uses : pypa/gh-action-pypi-publish@master
80+ with :
81+ password : ${{ secrets.TEST_PYPI_API_TOKEN }}
82+ repository_url : https://test.pypi.org/legacy/
83+
84+ - if : startsWith(github.ref, 'refs/tags')
85+ uses : pypa/gh-action-pypi-publish@master
86+ with :
87+ password : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change 1818[ ![ License: GPL v3] ( https://img.shields.io/badge/License-GPL%20v3-blue.svg )] ( https://www.gnu.org/licenses/gpl-3.0.html )
1919[ ![ Copyright] ( https://img.shields.io/static/v1?label=Copyright&color=249fe2&message=Jagiellonian%20University& )] ( https://en.uj.edu.pl/ )
2020
21- [ ![ Github Actions Build Status] ( https://github.com/atmos-cloud-sim-uj/PySDM/workflows/PySDM /badge.svg?branch=main )] ( https://github.com/atmos-cloud-sim-uj/PySDM/actions )
21+ [ ![ Github Actions Build Status] ( https://github.com/atmos-cloud-sim-uj/PySDM/workflows/tests+pypi /badge.svg?branch=main )] ( https://github.com/atmos-cloud-sim-uj/PySDM/actions )
2222[ ![ Appveyor Build status] ( http://ci.appveyor.com/api/projects/status/github/atmos-cloud-sim-uj/PySDM?branch=main&svg=true )] ( https://ci.appveyor.com/project/slayoo/pysdm/branch/main )
2323[ ![ Coverage Status] ( https://codecov.io/gh/atmos-cloud-sim-uj/PySDM/branch/main/graph/badge.svg )] ( https://codecov.io/github/atmos-cloud-sim-uj/PySDM?branch=main )
2424[ ![ GitHub issues] ( https://img.shields.io/github/issues-pr/atmos-cloud-sim-uj/PySDM.svg?logo=github&logoColor=white )] ( https://github.com/atmos-cloud-sim-uj/PySDM/pulls?q= )
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ def get_long_description():
1717 description = "Pythonic particle-based (super-droplet) warm-rain/aqueous-chemistry"
1818 " cloud microphysics package with box, parcel & 1D/2D prescribed-flow"
1919 " examples in Python, Julia and Matlab" ,
20- use_scm_version = True ,
20+ use_scm_version = { "local_scheme" : lambda _ : "" , "version_scheme" : "post-release" } ,
2121 setup_requires = ["setuptools_scm" ],
2222 install_requires = [
2323 "ThrustRTC==0.3.19" ,
You can’t perform that action at this time.
0 commit comments