File tree Expand file tree Collapse file tree 2 files changed +21
-14
lines changed Expand file tree Collapse file tree 2 files changed +21
-14
lines changed Original file line number Diff line number Diff line change 71
71
72
72
- name : Run lint
73
73
run : |
74
- poetry run pre-commit run --all-files
75
- # bwrap ${{ env.BUBBLEWRAP_ARGUMENTS }} bash
74
+ pipx install black==23.3.0
75
+ pipx install flake8==5.0.4
76
+ pipx install isort==5.11.5
77
+ pipx install pyupgrade==3.3.2
78
+ black . --check
79
+ flake8 . --count --show-source --statistics
80
+ isort . --diff --profile black
81
+ pyupgrade . --py37-plus --keep-runtime-typing
76
82
77
83
- if : ${{ matrix.python-version == '3.10' }}
78
84
name : Upload coverage
Original file line number Diff line number Diff line change @@ -18,22 +18,23 @@ jobs:
18
18
- name : Checkout code
19
19
uses : actions/checkout@v3
20
20
21
- - name : Configure Python 3.10
21
+ - name : Configure Python
22
22
uses : actions/setup-python@v4
23
23
with :
24
- python-version : " 3.10"
25
- cache : " pip"
24
+ python-version : " 3.7"
26
25
27
- - name : Install dependencies
26
+ - name : Configure dependencies
28
27
run : |
29
- python -m pip install --upgrade pip
30
- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
31
-
32
- - name : Remove artifacts
33
- run : rm -rf build/ dist/ auth0_python.egg-info
34
-
35
- - name : Package release
36
- run : python setup.py sdist bdist_wheel --universal
28
+ pip install --user --upgrade pip
29
+ pip install --user pipx
30
+ pipx ensurepath
31
+ pipx install poetry==1.4.2
32
+ poetry config virtualenvs.in-project true
33
+ poetry install --with dev
34
+
35
+ - name : Build release
36
+ run : |
37
+ poetry build
37
38
38
39
- name : Publish release
39
40
uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments