2323 runs-on : " ubuntu-20.04"
2424 continue-on-error : ${{ matrix.config.experimental }}
2525 env :
26- USING_COVERAGE : ' 3.6,3.7,3.8,3.9,3.10,3.11.0-alpha.5 ,pypy-3.6,pypy-3.7,pypy-3.8'
26+ USING_COVERAGE : ' 3.6,3.7,3.8,3.9,3.10,3.11.0-alpha.6 ,pypy-3.6,pypy-3.7,pypy-3.8,pypy39 '
2727
2828 strategy :
2929 fail-fast : False
@@ -34,10 +34,11 @@ jobs:
3434 - {python-version: "3.8", testenvs: "py38,build", experimental: False}
3535 - {python-version: "3.9", testenvs: "py39,build", experimental: False}
3636 - {python-version: "3.10", testenvs: "py310,build", experimental: False}
37- - {python-version: "3.11.0-alpha.5 ", testenvs: "py311-dev,build", experimental: True}
37+ - {python-version: "3.11.0-alpha.6 ", testenvs: "py311-dev,build", experimental: True}
3838 - {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False}
3939 - {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}
4040 - {python-version: "pypy-3.8", testenvs: "pypy38,build", experimental: True}
41+ - {python-version: "pypy39", testenvs: "pypy39,build", experimental: True}
4142
4243 steps :
4344 - name : Checkout 🛎️
@@ -187,22 +188,46 @@ jobs:
187188 with :
188189 python-version : 3.8
189190
191+ - name : Setup Conda
192+ uses : conda-incubator/setup-miniconda@v2
193+ with :
194+ activate-environment : env
195+ conda-build-version : 3.21.0
196+
190197 - name : Install dependencies 🔧
191198 run : |
199+ python -VV
200+ python -m site
192201 python -m pip install --upgrade pip setuptools wheel
193- python -m pip install --upgrade "mkrecipe" "setuptools>=40.6.0" "wheel>=0.34.2"
202+ python -m pip install --upgrade "mkrecipe" "setuptools<61,>=40.6.0" "wheel>=0.34.2"
203+ # $CONDA is an environment variable pointing to the root of the miniconda directory
204+ $CONDA/bin/conda config --set always_yes yes --set changeps1 no
205+ $CONDA/bin/conda update -n base conda
206+ $CONDA/bin/conda info -a
207+ $CONDA/bin/conda config --add channels conda-forge
208+ $CONDA/bin/conda config --add channels domdfcoding
194209
195- wget https://repo.anaconda.com/miniconda/Miniconda3-py38_4.10.3-Linux-x86_64.sh -O miniconda.sh
196- bash miniconda.sh -b -p $HOME/miniconda
210+ $CONDA/bin/conda config --remove channels defaults
197211
198- - name : Build Conda 📦
212+ - name : Build Conda Package 📦
199213 run : |
200- chmod +x .github/actions_build_conda.sh
201- bash .github/actions_build_conda.sh
214+ python -m mkrecipe --type wheel || exit 1
215+ $CONDA/bin/conda build conda -c conda-forge -c domdfcoding --output-folder conda/dist
202216
203- - name : Deploy Conda 🚀
217+ - name : Deploy Conda Package 🚀
218+ if : startsWith(github.ref, 'refs/tags/')
204219 run : |
205- chmod +x .github/actions_deploy_conda.sh
206- bash .github/actions_deploy_conda.sh
220+ $CONDA/bin/conda config --set always_yes yes --set changeps1 no
221+ $CONDA/bin/conda install anaconda-client
222+ $CONDA/bin/conda info -a
223+
224+ for f in conda/dist/noarch/domdf_python_tools-*.tar.bz2; do
225+ [ -e "$f" ] || continue
226+ echo "$f"
227+ conda install "$f" || exit 1
228+ echo "Deploying to Anaconda.org..."
229+ $CONDA/bin/anaconda -t "$ANACONDA_TOKEN" upload "$f" || exit 1
230+ echo "Successfully deployed to Anaconda.org."
231+ done
207232 env :
208233 ANACONDA_TOKEN : ${{ secrets.ANACONDA_TOKEN }}
0 commit comments