Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 15ab419

Browse files
committed
Update workflows
1 parent f0ce744 commit 15ab419

File tree

2 files changed

+21
-14
lines changed

2 files changed

+21
-14
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,14 @@ jobs:
7171

7272
- name: Run lint
7373
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
7682
7783
- if: ${{ matrix.python-version == '3.10' }}
7884
name: Upload coverage

.github/workflows/release.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,23 @@ jobs:
1818
- name: Checkout code
1919
uses: actions/checkout@v3
2020

21-
- name: Configure Python 3.10
21+
- name: Configure Python
2222
uses: actions/setup-python@v4
2323
with:
24-
python-version: "3.10"
25-
cache: "pip"
24+
python-version: "3.7"
2625

27-
- name: Install dependencies
26+
- name: Configure dependencies
2827
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
3738
3839
- name: Publish release
3940
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)