Skip to content

Commit

Permalink
ci: fix tox workflow (#241)
Browse files Browse the repository at this point in the history
* ci: pin `tox-gh-actions` to `3.0.0`

* chore(renovate): accept all YAML files for `pep440-python-dependency`

* ci: hint Renovate on `tox-gh-actions`

* chore(tox): rename `whitelist_externals` to `allowlist_externals`
  • Loading branch information
mkniewallner authored Dec 24, 2022
1 parent 7f4dc05 commit 0d07303
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ jobs:
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}

- name: Install tox
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
run: python -m pip install "tox-gh-actions==3.0.0" # renovate: pep440-python-dependency

- name: Test with tox
run: tox
Expand Down
2 changes: 1 addition & 1 deletion renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
regexManagers: [
{
description: "Update PEP 440 Python dependencies",
fileMatch: ["^\\.pre-commit-config\\.yaml$"],
fileMatch: ["^.+\\.ya?ml$"],
matchStrings: [
'"(?<depName>[\\w-]+)(?<currentValue>.+?)",?[[:blank:]]+#[[:blank:]]*renovate: pep440-python-dependency\\s',
],
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ python =

[testenv]
passenv = PYTHON_VERSION
whitelist_externals = poetry
allowlist_externals = poetry
commands =
poetry install -v
pytest --doctest-modules tests --cov --cov-config=pyproject.toml --cov-report=xml
Expand Down

0 comments on commit 0d07303

Please sign in to comment.