Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REF back to conda #1978

Merged
merged 6 commits into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 5 additions & 18 deletions .github/workflows/bot-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,19 @@ jobs:
run: |
free

- uses: mamba-org/setup-micromamba@v1
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
environment-file: cf-scripts/environment.yml
create-args: "python==${{ vars.PYVER }}"
init-shell: bash
cache-environment: false
environment-name: cf-scripts
post-cleanup: 'all'
condarc: |
channels:
- conda-forge

# Update conda-forge-pinning as we might got an outdated versions through the environment caching.
- name: force-update conda-forge-pinning
run: |
micromamba update conda-forge-pinning
python-version: "${{ vars.PYVER }}"
activate-environment: cf-scripts
condarc-file: cf-scripts/autotick-bot/condarc

- name: do local setup and stop me if needed
run: |
cd cf-scripts
python autotick-bot/stop_me_if_needed.py


- name: install bot code
if: success() && ! env.CI_SKIP
run: |
Expand Down Expand Up @@ -84,7 +74,6 @@ jobs:
pushd cf-graph
git status


- name: deploy
if: github.ref == 'refs/heads/master' && always() && ! env.CI_SKIP
run: |
Expand All @@ -93,8 +82,6 @@ jobs:
export CIRCLE_BUILD_URL="https://github.com/regro/cf-scripts/actions/runs/${RUN_ID}"
export CIRCLE_BUILD_NUM="actually-actions-${RUN_ID}"
conda-forge-tick deploy-to-github


env:
PASSWORD: ${{ secrets.AUTOTICK_BOT_TOKEN }}
RUN_ID: ${{ github.run_id }}
Expand Down
60 changes: 12 additions & 48 deletions .github/workflows/bot-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,41 +33,23 @@ jobs:
with:
path: cf-scripts

- uses: mamba-org/setup-micromamba@v1
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
environment-file: cf-scripts/environment.yml
create-args: "python==${{ vars.PYVER }}"
init-shell: bash
cache-environment: false
environment-name: cf-scripts
post-cleanup: 'all'
condarc: |
channels:
- conda-forge
python-version: "${{ vars.PYVER }}"
activate-environment: cf-scripts
condarc-file: cf-scripts/autotick-bot/condarc

- name: do local setup and stop me if needed
run: |
cd cf-scripts
python autotick-bot/stop_me_if_needed.py


- name: install bot code
if: success() && ! env.CI_SKIP
run: |
git config --global user.name regro-cf-autotick-bot
git config --global user.email [email protected]
git config --global pull.rebase false

cd cf-scripts
export GIT_FULL_HASH=$(git rev-parse HEAD)
pip install -e .


echo -e "\n\n============================================\n============================================"
conda info
conda config --show-sources
conda list --show-channel-urls
echo -e "\n\n============================================\n============================================"
source cf-scripts/autotick-bot/install_bot_code.sh --no-clone-graph-and-pinning

- name: run sync
if: success() && ! env.CI_SKIP
Expand All @@ -94,41 +76,23 @@ jobs:
with:
path: cf-scripts

- uses: mamba-org/setup-micromamba@v1
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
environment-file: cf-scripts/environment.yml
create-args: "python==${{ vars.PYVER }}"
init-shell: bash
cache-environment: true
environment-name: cf-scripts
post-cleanup: 'all'
condarc: |
channels:
- conda-forge
python-version: "${{ vars.PYVER }}"
activate-environment: cf-scripts
condarc-file: cf-scripts/autotick-bot/condarc

- name: do local setup and stop me if needed
run: |
cd cf-scripts
python autotick-bot/stop_me_if_needed.py


- name: install bot code
if: success() && ! env.CI_SKIP
run: |
git config --global user.name regro-cf-autotick-bot
git config --global user.email [email protected]
git config --global pull.rebase false

cd cf-scripts
export GIT_FULL_HASH=$(git rev-parse HEAD)
pip install -e .


echo -e "\n\n============================================\n============================================"
conda info
conda config --show-sources
conda list --show-channel-urls
echo -e "\n\n============================================\n============================================"
source cf-scripts/autotick-bot/install_bot_code.sh --no-clone-graph-and-pinning

- name: trigger next job
uses: benc-uk/workflow-dispatch@798e70c97009500150087d30d9f11c5444830385
Expand Down
24 changes: 13 additions & 11 deletions .github/workflows/bot-delete-old-runs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,26 @@ jobs:
delete-old-runs:
name: delete-old-runs
runs-on: "ubuntu-latest"
defaults:
run:
shell: bash -l {0}

steps:
- uses: actions/checkout@v3
with:
path: cf-scripts

- uses: mamba-org/setup-micromamba@v1
- uses: conda-incubator/setup-miniconda@v3
with:
environment-file: environment.yml
create-args: "python==${{ vars.PYVER }}"
init-shell: bash
cache-environment: false
environment-name: cf-scripts
post-cleanup: 'all'
condarc: |
channels:
- conda-forge
miniforge-version: latest
environment-file: cf-scripts/environment.yml
python-version: "${{ vars.PYVER }}"
activate-environment: cf-scripts
condarc-file: cf-scripts/autotick-bot/condarc

- name: delete runs
shell: bash -l {0}
run: |
cd cf-scripts
python autotick-bot/delete_old_runs.py
env:
GITHUB_TOKEN: ${{ secrets.AUTOTICK_BOT_TOKEN }}
20 changes: 6 additions & 14 deletions .github/workflows/bot-feedstocks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,25 @@ jobs:
defaults:
run:
shell: bash -l {0}

steps:
- uses: actions/checkout@v3
with:
path: cf-scripts

- uses: mamba-org/setup-micromamba@v1
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
environment-file: cf-scripts/environment.yml
create-args: "python==${{ vars.PYVER }}"
init-shell: bash
cache-environment: false
environment-name: cf-scripts
post-cleanup: 'all'
condarc: |
channels:
- conda-forge
python-version: "${{ vars.PYVER }}"
activate-environment: cf-scripts
condarc-file: cf-scripts/autotick-bot/condarc

- name: do local setup and stop me if needed
run: |
cd cf-scripts
python autotick-bot/stop_me_if_needed.py


- name: install bot code
if: success() && ! env.CI_SKIP
run: |
Expand All @@ -49,8 +45,6 @@ jobs:
pushd cf-graph

conda-forge-tick gather-all-feedstocks


env:
PASSWORD: ${{ secrets.AUTOTICK_BOT_TOKEN }}

Expand All @@ -62,8 +56,6 @@ jobs:
export CIRCLE_BUILD_URL="https://github.com/regro/cf-scripts/actions/runs/${RUN_ID}"
export CIRCLE_BUILD_NUM="actually-actions-${RUN_ID}"
conda-forge-tick deploy-to-github


env:
PASSWORD: ${{ secrets.AUTOTICK_BOT_TOKEN }}
RUN_ID: ${{ github.run_id }}
Expand Down
19 changes: 5 additions & 14 deletions .github/workflows/bot-make-graph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,19 @@ jobs:
with:
path: cf-scripts

- uses: mamba-org/setup-micromamba@v1
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
environment-file: cf-scripts/environment.yml
create-args: "python==${{ vars.PYVER }}"
init-shell: bash
cache-environment: false
environment-name: cf-scripts
post-cleanup: 'all'
condarc: |
channels:
- conda-forge
python-version: "${{ vars.PYVER }}"
activate-environment: cf-scripts
condarc-file: cf-scripts/autotick-bot/condarc

- name: do local setup and stop me if needed
run: |
cd cf-scripts
python autotick-bot/stop_me_if_needed.py


- name: install bot code
if: success() && ! env.CI_SKIP
run: |
Expand All @@ -51,8 +46,6 @@ jobs:
pushd cf-graph

conda-forge-tick make-graph


env:
USERNAME: regro-cf-autotick-bot
PASSWORD: ${{ secrets.AUTOTICK_BOT_TOKEN }}
Expand All @@ -67,8 +60,6 @@ jobs:
export CIRCLE_BUILD_URL="https://github.com/regro/cf-scripts/actions/runs/${RUN_ID}"
export CIRCLE_BUILD_NUM="actually-actions-${RUN_ID}"
conda-forge-tick deploy-to-github


env:
PASSWORD: ${{ secrets.AUTOTICK_BOT_TOKEN }}
RUN_ID: ${{ github.run_id }}
Expand Down
34 changes: 10 additions & 24 deletions .github/workflows/bot-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,19 @@ jobs:
with:
path: cf-scripts

- uses: mamba-org/setup-micromamba@v1
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
environment-file: cf-scripts/environment.yml
create-args: "python==${{ vars.PYVER }}"
init-shell: bash
cache-environment: false
environment-name: cf-scripts
post-cleanup: 'all'
condarc: |
channels:
- conda-forge
python-version: "${{ vars.PYVER }}"
activate-environment: cf-scripts
condarc-file: cf-scripts/autotick-bot/condarc

- name: do local setup and stop me if needed
run: |
cd cf-scripts
python autotick-bot/stop_me_if_needed.py


- name: install bot code
if: success() && ! env.CI_SKIP
run: |
Expand All @@ -56,8 +51,6 @@ jobs:
export CIRCLE_BUILD_URL="https://github.com/regro/cf-scripts/actions/runs/${RUN_ID}"
export CIRCLE_BUILD_NUM="actually-actions-${RUN_ID}"
conda-forge-tick update-prs --job=${BOT_JOB} --n-jobs=4


env:
USERNAME: regro-cf-autotick-bot
PASSWORD: ${{ secrets.AUTOTICK_BOT_TOKEN }}
Expand All @@ -74,8 +67,6 @@ jobs:
export CIRCLE_BUILD_URL="https://github.com/regro/cf-scripts/actions/runs/${RUN_ID}"
export CIRCLE_BUILD_NUM="actually-actions-${RUN_ID}"
conda-forge-tick deploy-to-github


env:
PASSWORD: ${{ secrets.AUTOTICK_BOT_TOKEN }}
RUN_ID: ${{ github.run_id }}
Expand Down Expand Up @@ -103,24 +94,19 @@ jobs:
with:
path: cf-scripts

- uses: mamba-org/setup-micromamba@v1
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
environment-file: cf-scripts/environment.yml
create-args: "python==${{ vars.PYVER }}"
init-shell: bash
cache-environment: true
environment-name: cf-scripts
post-cleanup: 'all'
condarc: |
channels:
- conda-forge
python-version: "${{ vars.PYVER }}"
activate-environment: cf-scripts
condarc-file: cf-scripts/autotick-bot/condarc

- name: do local setup and stop me if needed
run: |
cd cf-scripts
python autotick-bot/stop_me_if_needed.py


- name: trigger next job
uses: benc-uk/workflow-dispatch@798e70c97009500150087d30d9f11c5444830385
if: github.ref == 'refs/heads/master' && ! cancelled() && ! failure() && ! env.CI_SKIP
Expand Down
Loading
Loading