Skip to content

Commit

Permalink
drop tox usage within ci-locks gha (#1124)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjlittle authored Sep 30, 2024
1 parent 7557566 commit 4198d92
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ updates:
- "bot"
- "skip changelog"
commit-message:
prefix: "ci: "
prefix: "chore: "
include: "scope"
15 changes: 6 additions & 9 deletions .github/workflows/ci-locks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ jobs:
uses: conda-incubator/setup-miniconda@a4260408e20b96e80095f42ff7f1a15b27dd94ca
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 +67,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 'from sys import version_info as v; open("../geovista.yml", "a").write(f"\n - python ={v.major}.{v.minor}\n${{ env.VTK_BUILD }}\n")'
conda-lock --mamba --channel conda-forge --kind explicit --file ../geovista.yml --platform linux-64 --filename-template "${{ matrix.version }}-{platform}.txt"
python lock2yaml.py ${{ matrix.version }}
- uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -127,7 +124,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
4 changes: 4 additions & 0 deletions changelog/1124.contributor.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Dropped the use of ``tox`` to render lock file updates within the ``ci-locks``
:fab:`github` Action due to incompatibilites between the pinned
`tox-conda <https://github.com/tox-dev/tox-conda>`__ plugin and the modern
:fab:`github` runner environment. (:user:`bjlittle`)

0 comments on commit 4198d92

Please sign in to comment.