pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python-gitlab/python-gitlab/commit/0ecf3bbe28c92fd26a7d132bf7f5ae9481cbad30

link crossorigen="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-b40ec823a1a6a1af.css" /> chore: validate httpx package is not installed by default · python-gitlab/python-gitlab@0ecf3bb · GitHub
Skip to content

Commit 0ecf3bb

Browse files
Liora Milbaumnejch
authored andcommitted
chore: validate httpx package is not installed by default
1 parent 1020ce9 commit 0ecf3bb

4 files changed

Lines changed: 50 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,39 @@ jobs:
102102
files: ./coverage.xml
103103
flags: unit
104104
fail_ci_if_error: false
105+
106+
dist:
107+
runs-on: ubuntu-latest
108+
name: Python wheel
109+
steps:
110+
- uses: actions/checkout@v1
111+
- uses: actions/setup-python@v2
112+
with:
113+
python-version: "3.11"
114+
- name: Install dependencies
115+
run: |
116+
pip install -r requirements-test.txt
117+
- name: Build package
118+
run: python -m build -o dist/
119+
- uses: actions/upload-artifact@v2
120+
with:
121+
name: dist
122+
path: dist
123+
124+
test:
125+
runs-on: ubuntu-latest
126+
needs: [dist]
127+
steps:
128+
- uses: actions/checkout@v3
129+
- name: Set up Python
130+
uses: actions/setup-python@v4
131+
with:
132+
python-version: '3.11'
133+
- uses: actions/download-artifact@v2
134+
with:
135+
name: dist
136+
path: dist
137+
- name: install dist/*.whl and requirements
138+
run: pip install dist/*.whl -r requirements-test.txt tox
139+
- name: Run tests
140+
run: tox -e install

requirements-test.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
build==0.9.0
12
coverage==6.5.0
2-
pytest==7.1.3
33
pytest-console-scripts==1.3.1
44
pytest-cov==4.0.0
55
pytest-github-actions-annotate-failures==0.1.7
6+
pytest==7.1.3
67
PyYaml==5.4.1
78
responses==0.21.0

tests/install/test_install.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import pytest
2+
3+
4+
def test_install() -> None:
5+
with pytest.raises(ImportError):
6+
import httpx # type: ignore # noqa

tox.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,9 @@ commands = pytest tests/smoke {posargs}
128128
skip_install = true
129129
deps = -r requirements-precommit.txt
130130
commands = pre-commit run --all-files --show-diff-on-failure
131+
132+
[testenv:install]
133+
skip_install = true
134+
deps = -r{toxinidir}/requirements.txt
135+
-r{toxinidir}/requirements-test.txt
136+
commands = pytest tests/install

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy