Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f67514e

Browse filesBrowse files
nejchJohnVillalovos
authored andcommitted
chore(ci): make pytest annotations work
1 parent cdd6efe commit f67514e
Copy full SHA for f67514e

File tree

Expand file treeCollapse file tree

3 files changed

+14
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

3 files changed

+14
-4
lines changed
Open diff view settings
Collapse file

‎.github/workflows/test.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/test.yml
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
with:
5252
python-version: ${{ matrix.python.version }}
5353
- name: Install dependencies
54-
run: pip3 install tox pytest-github-actions-annotate-failures
54+
run: pip install tox
5555
- name: Run tests
5656
env:
5757
TOXENV: ${{ matrix.python.toxenv }}
@@ -69,7 +69,7 @@ jobs:
6969
with:
7070
python-version: "3.10"
7171
- name: Install dependencies
72-
run: pip install tox pytest-github-actions-annotate-failures
72+
run: pip install tox
7373
- name: Run tests
7474
env:
7575
TOXENV: ${{ matrix.toxenv }}
@@ -90,7 +90,7 @@ jobs:
9090
with:
9191
python-version: "3.10"
9292
- name: Install dependencies
93-
run: pip install tox pytest-github-actions-annotate-failures
93+
run: pip install tox
9494
- name: Run tests
9595
env:
9696
PY_COLORS: 1
Collapse file

‎requirements-test.txt‎

Copy file name to clipboardExpand all lines: requirements-test.txt
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ coverage
22
pytest==7.1.2
33
pytest-console-scripts==1.3.1
44
pytest-cov
5+
pytest-github-actions-annotate-failures==0.1.7
56
PyYaml>=5.2
67
responses
Collapse file

‎tox.ini‎

Copy file name to clipboardExpand all lines: tox.ini
+10-1Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,16 @@ skip_missing_interpreters = True
55
envlist = py310,py39,py38,py37,flake8,black,twine-check,mypy,isort,cz,pylint
66

77
[testenv]
8-
passenv = GITLAB_IMAGE GITLAB_TAG PY_COLORS NO_COLOR FORCE_COLOR DOCKER_HOST PWD
8+
passenv =
9+
DOCKER_HOST
10+
FORCE_COLOR
11+
GITHUB_ACTIONS
12+
GITHUB_WORKSPACE
13+
GITLAB_IMAGE
14+
GITLAB_TAG
15+
NO_COLOR
16+
PWD
17+
PY_COLORS
918
setenv = VIRTUAL_ENV={envdir}
1019
whitelist_externals = true
1120
usedevelop = True

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.