Skip to content

Commit

Permalink
Fix py 3.12 build
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjmcgrath committed Dec 5, 2023
1 parent b6c4a97 commit d4a423c
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
pip install --user pipx
pip install --user setuptools
pipx ensurepath
pipx install poetry==1.4.2
pipx install poetry
poetry config virtualenvs.in-project true
poetry install --with dev
poetry self add "poetry-dynamic-versioning[plugin]==1.1.1"
Expand Down
75 changes: 75 additions & 0 deletions .github/workflows/testadam.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Build and Test

on:
merge_group:
pull_request:
types:
- opened
- synchronize
push:
branches:
- master

permissions:
contents: read

jobs:
run:
name: Run
runs-on: ubuntu-latest

env:
BUBBLEWRAP_ARGUMENTS: |
--unshare-all \
--clearenv \
--ro-bind / / \
--bind ${{ github.workspace }} ${{ github.workspace }} \
--tmpfs $HOME \
--tmpfs /tmp \
--tmpfs /var \
--dev /dev \
--proc /proc \
--die-with-parent \
--new-session \
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha || github.ref }}

- name: Configure Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python-version }}"

- name: Configure dependencies
run: |
sudo apt install bubblewrap
pip install --user --upgrade pip
pip install --user pipx
pip install --user setuptools
pipx ensurepath
pipx install poetry
poetry config virtualenvs.in-project true
poetry install --with dev
poetry self add "poetry-dynamic-versioning[plugin]==1.1.1"
- name: Run tests
run: |
poetry run pytest --cov=auth0 --cov-report=term-missing:skip-covered --cov-report=xml
# - name: Run lint
# run: |
# pipx install black==23.3.0
# pipx install flake8==5.0.4
# pipx install isort==5.11.5
# pipx install pyupgrade==3.3.2
# black . --check
# flake8 . --count --show-source --statistics
# isort . --diff --profile black
# pyupgrade . --py37-plus --keep-runtime-typing

0 comments on commit d4a423c

Please sign in to comment.