* Link to the GitHub Actions job if a repository is public:
* Here is a run that failed: https://github.com/tbrlpld/laces/actions/runs/7604822530/job/20708230969#step:5:113
* The failing dependency is `coverage`.
* I can also not see any logging of the install step, which makes this hard to debug. I am already running with `tox -vv`.
**Expected behavior**
The custom install command should be used to install the dependencies.
**Additional context**
* tox: 4.11.3
* tox-gh-actions: 3.13
Describe the bug
The custom
install_command
fromtox.ini
seems to be ignored.If my
command
depends on packages that should be installed with theinstall_command
I get errors when running on GitHub Actions, but not locally.To Reproduce
on: push: branches:
'stable/**'
pull_request:
concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true
permissions: contents: read # to fetch code (actions/checkout)
jobs: lint: runs-on: ubuntu-latest steps:
uses: pre-commit/action@v3.0.0
test-sqlite: runs-on: ubuntu-latest needs: lint strategy: matrix: python: ['3.8', '3.9', '3.10', '3.11']
steps:
[tox] skipsdist = True usedevelop = True
envlist = python{3.8,3.9,3.10,3.11}-django{3.2,4.1,4.2}
[gh-actions] python = 3.8: python3.8 3.9: python3.9 3.10: python3.10 3.11: python3.11
[gh-actions:env] DB = sqlite: sqlite
[testenv] install_command = python -m pip install -e ".[testing]" -U {opts} {packages}
commands_pre =
Mostly to check that the requirements are in order
commands = coverage run -a testmanage.py test --deprecation all {posargs: -v 2}
commands_post = coverage json --data-file .coverage -o .coverage.json
basepython = python3.8: python3.8 python3.9: python3.9 python3.10: python3.10 python3.11: python3.11
deps = django3.2: Django>=3.2,<4.0 django4.0: Django>=4.0,<4.1 django4.1: Django>=4.1,<4.2 django4.2: Django>=4.2,<4.3 djangomain: git+https://github.com/django/django.git@main#egg=Django
[testenv:interactive] basepython = python3.10
commands_pre = python {toxinidir}/testmanage.py makemigrations python {toxinidir}/testmanage.py migrate python {toxinidir}/testmanage.py shell -c "from django.contrib.auth.models import User;(not User.objects.filter(username='admin').exists()) and User.objects.create_superuser('admin', 'super@example.com', 'changeme')" python {toxinidir}/testmanage.py createcachetable
commands = {posargs:python testmanage.py runserver 0.0.0.0:8020}
setenv = INTERACTIVE = 1