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

Skip to content

Commit d4a423c

Browse files
committed
Fix py 3.12 build
1 parent b6c4a97 commit d4a423c

File tree

2 files changed

+76
-1
lines changed

2 files changed

+76
-1
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
pip install --user pipx
6868
pip install --user setuptools
6969
pipx ensurepath
70-
pipx install poetry==1.4.2
70+
pipx install poetry
7171
poetry config virtualenvs.in-project true
7272
poetry install --with dev
7373
poetry self add "poetry-dynamic-versioning[plugin]==1.1.1"

.github/workflows/testadam.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: Build and Test
2+
3+
on:
4+
merge_group:
5+
pull_request:
6+
types:
7+
- opened
8+
- synchronize
9+
push:
10+
branches:
11+
- master
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
run:
18+
name: Run
19+
runs-on: ubuntu-latest
20+
21+
env:
22+
BUBBLEWRAP_ARGUMENTS: |
23+
--unshare-all \
24+
--clearenv \
25+
--ro-bind / / \
26+
--bind ${{ github.workspace }} ${{ github.workspace }} \
27+
--tmpfs $HOME \
28+
--tmpfs /tmp \
29+
--tmpfs /var \
30+
--dev /dev \
31+
--proc /proc \
32+
--die-with-parent \
33+
--new-session \
34+
35+
strategy:
36+
matrix:
37+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
38+
39+
steps:
40+
- name: Checkout code
41+
uses: actions/checkout@v4
42+
with:
43+
ref: ${{ github.event.pull_request.head.sha || github.ref }}
44+
45+
- name: Configure Python ${{ matrix.python-version }}
46+
uses: actions/setup-python@v4
47+
with:
48+
python-version: "${{ matrix.python-version }}"
49+
50+
- name: Configure dependencies
51+
run: |
52+
sudo apt install bubblewrap
53+
pip install --user --upgrade pip
54+
pip install --user pipx
55+
pip install --user setuptools
56+
pipx ensurepath
57+
pipx install poetry
58+
poetry config virtualenvs.in-project true
59+
poetry install --with dev
60+
poetry self add "poetry-dynamic-versioning[plugin]==1.1.1"
61+
62+
- name: Run tests
63+
run: |
64+
poetry run pytest --cov=auth0 --cov-report=term-missing:skip-covered --cov-report=xml
65+
66+
# - name: Run lint
67+
# run: |
68+
# pipx install black==23.3.0
69+
# pipx install flake8==5.0.4
70+
# pipx install isort==5.11.5
71+
# pipx install pyupgrade==3.3.2
72+
# black . --check
73+
# flake8 . --count --show-source --statistics
74+
# isort . --diff --profile black
75+
# pyupgrade . --py37-plus --keep-runtime-typing

0 commit comments

Comments
 (0)