@@ -15,22 +15,22 @@ jobs:
1515 with :
1616 ref : ${{github.sha}}
1717
18- - name : Set up Python 3.6
18+ - name : Set up Python 3.7
1919 uses : actions/setup-python@v2
2020 with :
21- python-version : 3.6
21+ python-version : 3.7
2222
2323 - name : Install dependencies
2424 # Installing wheel package will slightly speed-up installing dependencies.
2525 # Installing the package with "[dev]" flag will install test dependecies as well,
2626 # enabling us to run pytest.
2727 run : |
28- python -m pip install --upgrade pip
29- python -m pip install wheel
30- pip install .[dev]
28+ python3 -m pip install --upgrade pip
29+ python3 -m pip install wheel pytest
30+ python3 -m pip install .[dev]
3131
3232 - name : Run Python Tests
33- run : python -m pytest
33+ run : python3 -m pytest
3434
3535 build_and_publish_pypi :
3636 needs : [python_tests]
@@ -43,60 +43,23 @@ jobs:
4343 with :
4444 ref : ${{github.sha}}
4545
46- - name : Set up Python 3.6
46+ - name : Set up Python 3.7
4747 uses : actions/setup-python@v2
4848 with :
49- python-version : 3.6
49+ python-version : 3.7
5050
5151 - name : Install Python build dependencies
5252 run : |
53- python -m pip install --upgrade pip
54- python -m pip install wheel
53+ python3 -m pip install --upgrade pip
54+ python3 -m pip install wheel hatch
5555
5656 - name : Build Source and Binary wheel distributions
57- run : python setup.py bdist_wheel sdist
57+ run : python3 -m hatch build -t wheel
5858
5959 - name : Publish to PyPI.
6060 uses : pypa/gh-action-pypi-publish@release/v1
6161 with :
6262 user : __token__
6363 verbose : true
6464 password : ${{ secrets.PYPI_TOKEN }}
65- repository_url : https://upload.pypi.org/legacy/
66-
67- # build_and_publish_anaconda:
68- # needs: [build_and_publish_pypi]
69- # if: success()
70- # runs-on: ubuntu-latest
71-
72- # steps:
73- # - name: Checkout
74- # uses: actions/checkout@v2
75- # with:
76- # ref: ${{github.sha}}
77-
78- # - name: Set up Python 3.6
79- # uses: actions/setup-python@v2
80- # with:
81- # python-version: 3.6
82-
83- # - name: Install Python build dependencies
84- # run: |
85- # python -m pip install --upgrade pip
86- # python -m pip install wheel
87- # python -m pip install .[dev]
88-
89- # - name: Build and Publish to Anaconda.
90- # env:
91- # ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
92-
93- # run: |
94- # # $CONDA is an environment variable pointing to the root of the miniconda directory
95- # echo $CONDA/bin >> $GITHUB_PATH
96- # conda install -y conda-build
97- # conda install -y anaconda-client
98- # cd ./anaconda
99- # conda skeleton pypi jupyter-matlab-proxy
100- # python parse_meta_file.py
101- # conda build ./jupyter-matlab-proxy --python 3.6 --output-folder ./build
102- # $CONDA/bin/anaconda upload --label main ./build/linux-64/jupyter*.tar.gz
65+ repository_url : ${{ secrets.PYPI_REPOSITORY_URL }}
0 commit comments