File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Publish to PyPI
22
33on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+ branches :
9+ - main
410 release :
511 types :
612 - published
@@ -14,40 +20,34 @@ jobs:
1420 - name : Set up Python
1521 uses : actions/setup-python@v1
1622 with :
17- python-version : 3.8
23+ python-version : 3.x
1824
1925 - name : Get tags
2026 run : git fetch --depth=1 origin +refs/tags/*:refs/tags/*
2127 shell : bash
2228
2329 - name : Install build tools
2430 run : |
25- python -m pip install --upgrade pip wheel setuptools setuptools_scm twine "branca>=0.3.0" "jinja2>=2.9" numpy requests
31+ python -m pip install --upgrade pip wheel build twine
2632
2733 shell : bash
2834
29- - name : Build binary wheel
30- run : pip wheel . -w dist --no-deps
31-
32- - name : Build sdist
33- run : python setup.py sdist
35+ - name : Build binary wheel and sdist
36+ run : python -m build --sdist --wheel . --outdir dist
3437
3538 - name : CheckFiles
3639 run : |
3740 ls dist
3841 shell : bash
3942
40- - name : Check Version
41- run : |
42- python setup.py --version
43-
4443 - name : Test wheels
4544 run : |
4645 cd dist && python -m pip install folium*.whl
4746 python -m twine check *
4847 shell : bash
4948
5049 - name : Publish a Python distribution to PyPI
50+ if : ${{ github.event_name == 'create' && github.event.ref_type == 'tag' }}
5151 uses : pypa/gh-action-pypi-publish@master
5252 with :
5353 user : __token__
Original file line number Diff line number Diff line change 11name : Code Tests
22
33on :
4- push :
5- branches :
6- - main
74 pull_request :
8- branches :
9- - main
5+ push :
6+ branches : [ main]
107
118jobs :
129 run :
1310 runs-on : ${{ matrix.os }}
1411 strategy :
1512 matrix :
1613 os : [ubuntu-latest, windows-latest]
17- python-version : [3.6, 3.9]
14+ python-version : ["3.6", "3.10"]
15+ fail-fast : false
1816
1917 steps :
2018 - uses : actions/checkout@v2
@@ -23,23 +21,16 @@ jobs:
2321 uses : s-weigand/setup-conda@v1
2422 with :
2523 activate-conda : false
24+ update-conda : true
2625 conda-channels : conda-forge
2726
2827 - name : Python ${{ matrix.python-version }}
2928 shell : bash -l {0}
3029 run : |
31- conda create --yes --name TEST python=${{ matrix.python-version }} pip --file requirements.txt --file requirements-dev.txt --channel conda-forge --strict-channel-priority
30+ conda create --yes --name TEST python=${{ matrix.python-version }} pip --file requirements.txt --file requirements-dev.txt
3231 source activate TEST
3332 pip install -e . --no-deps --force-reinstall
3433
35- - name : Tarball tests
36- shell : bash -l {0}
37- run : |
38- source activate TEST
39- pip wheel . -w dist --no-deps
40- check-manifest --verbose
41- twine check dist/*
42-
4334 - name : Tests
4435 shell : bash -l {0}
4536 run : |
You can’t perform that action at this time.
0 commit comments