Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
python-gitlab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
敏捷攀樹協會
社群
python-gitlab
Commits
0ecf3bbe
Commit
0ecf3bbe
authored
2 years ago
by
Liora Milbaum
Committed by
Nejc Habjan
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
chore: validate httpx package is not installed by default
parent
1020ce96
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.github/workflows/test.yml
+36
-0
36 additions, 0 deletions
.github/workflows/test.yml
requirements-test.txt
+2
-1
2 additions, 1 deletion
requirements-test.txt
tests/install/test_install.py
+6
-0
6 additions, 0 deletions
tests/install/test_install.py
tox.ini
+6
-0
6 additions, 0 deletions
tox.ini
with
50 additions
and
1 deletion
.github/workflows/test.yml
+
36
−
0
View file @
0ecf3bbe
...
...
@@ -102,3 +102,39 @@ jobs:
files
:
./coverage.xml
flags
:
unit
fail_ci_if_error
:
false
dist
:
runs-on
:
ubuntu-latest
name
:
Python wheel
steps
:
-
uses
:
actions/checkout@v1
-
uses
:
actions/setup-python@v2
with
:
python-version
:
"
3.11"
-
name
:
Install dependencies
run
:
|
pip install -r requirements-test.txt
-
name
:
Build package
run
:
python -m build -o dist/
-
uses
:
actions/upload-artifact@v2
with
:
name
:
dist
path
:
dist
test
:
runs-on
:
ubuntu-latest
needs
:
[
dist
]
steps
:
-
uses
:
actions/checkout@v3
-
name
:
Set up Python
uses
:
actions/setup-python@v4
with
:
python-version
:
'
3.11'
-
uses
:
actions/download-artifact@v2
with
:
name
:
dist
path
:
dist
-
name
:
install dist/*.whl and requirements
run
:
pip install dist/*.whl -r requirements-test.txt tox
-
name
:
Run tests
run
:
tox -e install
This diff is collapsed.
Click to expand it.
requirements-test.txt
+
2
−
1
View file @
0ecf3bbe
build==0.9.0
coverage==6.5.0
pytest==7.1.3
pytest-console-scripts==1.3.1
pytest-cov==4.0.0
pytest-github-actions-annotate-failures==0.1.7
pytest==7.1.3
PyYaml==5.4.1
responses==0.21.0
This diff is collapsed.
Click to expand it.
tests/install/test_install.py
0 → 100644
+
6
−
0
View file @
0ecf3bbe
import
pytest
def
test_install
()
->
None
:
with
pytest
.
raises
(
ImportError
):
import
httpx
# type: ignore # noqa
This diff is collapsed.
Click to expand it.
tox.ini
+
6
−
0
View file @
0ecf3bbe
...
...
@@ -128,3 +128,9 @@ commands = pytest tests/smoke {posargs}
skip_install
=
true
deps
=
-r requirements-precommit.txt
commands
=
pre-commit run --all-files --show-diff-on-failure
[testenv:install]
skip_install
=
true
deps
=
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-test.txt
commands
=
pytest tests/install
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment