-
Hi, I'm trying to set up a workflow that uses tox to run tests for my package. The workflow file that I'm using is the same from the README of this repository: name: Tests
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8' ]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Test with tox
run: tox However, during the "Test with tox" step, tests are not executed correctly (as far as I can tell) and the following error is raised: Am I doing something wrong? This is the branch in which I'm trying to trigger the action. This is a failed action. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello, thanks for reporting the issue.
This error message is something I don't expect. I'll make a fix for this soon. (#181) Although, this is a warning message and it shouldn't disable tox-gh-actions.
We need to specify the list of environments in [tox]
envlist =
black
test
readme
clean
py36
py37
py38
py39
py310
py311
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311 |
Beta Was this translation helpful? Give feedback.
Hello, thanks for reporting the issue.
This error message is something I don't expect. I'll make a fix for this soon. (#181) Although, this is a warning message and it shouldn't disable tox-gh-actions.
We need to specify the list of environments in
envlist
as well.gh-actions.python
is used to pick which environments to run in thetox.envlist
. You can see more verbose message in this build: https://github.com/lu-maca/py-packed-struct/actions/runs/5427779325/jobs/9871359500?pr=2 Here's an example of th…