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

drop tox usage within ci-locks gha #1170

Merged
merged 1 commit into from
Oct 21, 2024
Merged
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
17 changes: 8 additions & 9 deletions .github/workflows/ci-locks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ jobs:
CACHE_WEEKS: 2
run: |
echo "CACHE_PERIOD=$(date +%Y).$(expr $(date +%U) / ${CACHE_WEEKS})" >> ${GITHUB_ENV}
echo "PY_MAJOR=$(echo -n ${{ matrix.version }} | tail -c 3 | head -c 1)" >> ${GITHUB_ENV}
echo "PY_MINOR=$(echo -n ${{ matrix.version }} | tail -c 2)" >> ${GITHUB_ENV}

- name: "conda package cache"
uses: ./.github/workflows/composite/conda-pkg-cache
Expand All @@ -59,9 +61,6 @@ jobs:
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
channels: conda-forge,defaults
channel-priority: true
auto-update-conda: true
activate-environment: ${{ env.ENV_NAME }}
use-only-tar-bz2: false

Expand All @@ -70,21 +69,21 @@ jobs:
with:
cache_period: ${{ env.CACHE_PERIOD }}
env_name: ${{ env.ENV_NAME }}
install_packages: "pip 'tox<4'"
install_packages: "conda-lock jinja2"

- name: "conda info"
run: |
conda info
conda list

- name: "tox cache"
uses: ./.github/workflows/composite/tox-cache

- name: "lock (${{ matrix.version }})"
env:
VTK_BUILD: " - vtk=*=qt_*"
working-directory: requirements/locks
run: |
tox -e ${{ matrix.version }}-lock
python -c 'open("../geovista.yml", "a").write("\n - python =${{ env.PY_MAJOR }}.${{ env.PY_MINOR }}\n${{ env.VTK_BUILD }}\n")'
conda-lock --mamba --channel conda-forge --kind explicit --file ../geovista.yml --platform linux-64 --filename-template "${{ matrix.version }}-lock-{platform}.txt"
python lock2yaml.py ${{ matrix.version }}

- uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -127,7 +126,7 @@ jobs:
commit-message: "updated conda lock files"
branch: conda-lock-auto-update
delete-branch: true
title: "[geovista.ci] conda lock auto-update"
title: "chore: bump conda lock files"
body: |
🤖 Bleep! Bloop!

Expand Down
Loading