Skip to content

Commit fa23370

Browse files
author
Liora Milbaum
committed
feat: Initial support for httpx
1 parent f04e8ba commit fa23370

24 files changed

+930
-561
lines changed

.github/workflows/functional.yml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: "Functional"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
dist:
13+
runs-on: ubuntu-latest
14+
name: Python wheel
15+
steps:
16+
- uses: actions/checkout@v1
17+
- uses: actions/setup-python@v2
18+
with:
19+
python-version: "3.10"
20+
- name: Install dependencies
21+
run: |
22+
pip install -r requirements-test.txt
23+
- name: Build package
24+
run: python -m build -o dist/
25+
- uses: actions/upload-artifact@v2
26+
with:
27+
name: dist
28+
path: dist
29+
30+
test:
31+
runs-on: ubuntu-latest
32+
needs: [dist]
33+
strategy:
34+
matrix:
35+
python-version: [ '3.7', '3.8', '3.9', '3.10' ]
36+
install-from: ["dist/*.whl"]
37+
steps:
38+
- uses: actions/checkout@v3
39+
- name: Set up Python ${{ matrix.python-version }}
40+
uses: actions/setup-python@v4
41+
with:
42+
python-version: ${{ matrix.python-version }}
43+
- uses: actions/download-artifact@v2
44+
with:
45+
name: dist
46+
path: dist
47+
- name: install ${{ matrix.install-from }} and requirements
48+
run: pip install ${{ matrix.install-from }} -r requirements-test.txt
49+
- name: pytest
50+
run: pytest tests/install

.pre-commit-config.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ repos:
2323
rev: v2.15.5
2424
hooks:
2525
- id: pylint
26-
additional_dependencies:
26+
additional_dependencies:
2727
- argcomplete==2.0.0
2828
- pytest==7.1.3
29+
- httpx==0.23.0
2930
- requests==2.28.1
3031
- requests-toolbelt==0.9.1
3132
files: 'gitlab/'
@@ -37,6 +38,7 @@ repos:
3738
additional_dependencies:
3839
- pytest==7.1.3
3940
- responses==0.21.0
41+
- httpx==0.23.0
4042
- types-PyYAML==6.0.12
4143
- types-requests==2.28.11.2
4244
- types-setuptools==64.0.1

0 commit comments

Comments
 (0)