Skip to content

Commit 2aafb23

Browse files
Updated files with 'repo_helper'. (#35)
Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com>
1 parent ef28487 commit 2aafb23

File tree

6 files changed

+39
-59
lines changed

6 files changed

+39
-59
lines changed

.github/actions_build_conda.sh

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/actions_deploy_conda.sh

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/conda_ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
python -m pip install --upgrade pip setuptools wheel
4040
python -m pip install --upgrade "whey-conda" "whey"
4141
# $CONDA is an environment variable pointing to the root of the miniconda directory
42+
$CONDA/bin/conda update -n base conda
4243
$CONDA/bin/conda config --add channels conda-forge
4344
$CONDA/bin/conda config --add channels domdfcoding
4445

.github/workflows/python_ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: "windows-2019"
2323
continue-on-error: ${{ matrix.config.experimental }}
2424
env:
25-
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'
25+
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'
2626

2727
strategy:
2828
fail-fast: False
@@ -33,7 +33,7 @@ jobs:
3333
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
3434
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
3535
- {python-version: "3.10", testenvs: "py310,build", experimental: False}
36-
- {python-version: "3.11.0-alpha.5", testenvs: "py311-dev,build", experimental: True}
36+
- {python-version: "3.11.0-alpha.6", testenvs: "py311-dev,build", experimental: True}
3737
- {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False}
3838
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}
3939
- {python-version: "pypy-3.8", testenvs: "pypy38,build", experimental: True}

.github/workflows/python_ci_linux.yml

Lines changed: 34 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
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'
2727

2828
strategy:
2929
fail-fast: False
@@ -34,7 +34,7 @@ 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}
@@ -187,22 +187,46 @@ jobs:
187187
with:
188188
python-version: 3.8
189189

190+
- name: Setup Conda
191+
uses: conda-incubator/setup-miniconda@v2
192+
with:
193+
activate-environment: env
194+
conda-build-version: 3.21.0
195+
190196
- name: Install dependencies 🔧
191197
run: |
198+
python -VV
199+
python -m site
192200
python -m pip install --upgrade pip setuptools wheel
193201
python -m pip install --upgrade "mkrecipe" "whey"
202+
# $CONDA is an environment variable pointing to the root of the miniconda directory
203+
$CONDA/bin/conda config --set always_yes yes --set changeps1 no
204+
$CONDA/bin/conda update -n base conda
205+
$CONDA/bin/conda info -a
206+
$CONDA/bin/conda config --add channels conda-forge
207+
$CONDA/bin/conda config --add channels domdfcoding
194208
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
209+
$CONDA/bin/conda config --remove channels defaults
197210
198-
- name: Build Conda 📦
211+
- name: Build Conda Package 📦
199212
run: |
200-
chmod +x .github/actions_build_conda.sh
201-
bash .github/actions_build_conda.sh
213+
python -m mkrecipe --type wheel || exit 1
214+
$CONDA/bin/conda build conda -c conda-forge -c domdfcoding --output-folder conda/dist
202215
203-
- name: Deploy Conda 🚀
216+
- name: Deploy Conda Package 🚀
217+
if: startsWith(github.ref, 'refs/tags/')
204218
run: |
205-
chmod +x .github/actions_deploy_conda.sh
206-
bash .github/actions_deploy_conda.sh
219+
$CONDA/bin/conda config --set always_yes yes --set changeps1 no
220+
$CONDA/bin/conda install anaconda-client
221+
$CONDA/bin/conda info -a
222+
223+
for f in conda/dist/noarch/flake8_sphinx_links-*.tar.bz2; do
224+
[ -e "$f" ] || continue
225+
echo "$f"
226+
conda install "$f" || exit 1
227+
echo "Deploying to Anaconda.org..."
228+
$CONDA/bin/anaconda -t "$ANACONDA_TOKEN" upload "$f" || exit 1
229+
echo "Successfully deployed to Anaconda.org."
230+
done
207231
env:
208232
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}

.github/workflows/python_ci_macos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: "macos-latest"
2323
continue-on-error: ${{ matrix.config.experimental }}
2424
env:
25-
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11.0-alpha.5,pypy-3.7,pypy-3.8'
25+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11.0-alpha.6,pypy-3.7,pypy-3.8'
2626

2727
strategy:
2828
fail-fast: False
@@ -33,7 +33,7 @@ jobs:
3333
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
3434
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
3535
- {python-version: "3.10", testenvs: "py310,build", experimental: False}
36-
- {python-version: "3.11.0-alpha.5", testenvs: "py311-dev,build", experimental: True}
36+
- {python-version: "3.11.0-alpha.6", testenvs: "py311-dev,build", experimental: True}
3737
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}
3838
- {python-version: "pypy-3.8", testenvs: "pypy38,build", experimental: True}
3939

0 commit comments

Comments
 (0)