From d4a423c50a950e44500cf0f79f9061418a0728d0 Mon Sep 17 00:00:00 2001 From: Adam Mcgrath Date: Tue, 5 Dec 2023 14:59:01 +0000 Subject: [PATCH 1/2] Fix py 3.12 build --- .github/workflows/test.yml | 2 +- .github/workflows/testadam.yml | 75 ++++++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/testadam.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d9827e92..37598177 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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" diff --git a/.github/workflows/testadam.yml b/.github/workflows/testadam.yml new file mode 100644 index 00000000..2e346384 --- /dev/null +++ b/.github/workflows/testadam.yml @@ -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 From d004cacd03888c1df4581ad8b9602e0ebb272237 Mon Sep 17 00:00:00 2001 From: Adam Mcgrath Date: Tue, 5 Dec 2023 15:03:45 +0000 Subject: [PATCH 2/2] Revert test file --- .github/workflows/testadam.yml | 75 ---------------------------------- 1 file changed, 75 deletions(-) delete mode 100644 .github/workflows/testadam.yml diff --git a/.github/workflows/testadam.yml b/.github/workflows/testadam.yml deleted file mode 100644 index 2e346384..00000000 --- a/.github/workflows/testadam.yml +++ /dev/null @@ -1,75 +0,0 @@ -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