Skip to content

Commit

Permalink
use build dependencies that support python 3.11 (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarkhau authored Oct 26, 2022
1 parent e098290 commit 3c85fc0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/nox-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,23 @@ jobs:
runs-on: ubuntu-latest
name: Lint
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup git submodule
run: git submodule update --init --recursive

- name: Setup python
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: '3.9'
python-version: '3.11'
architecture: x64

- name: Setup virtualenv
run: |
# Always install nox into Python 3, regardless of the Python version used.
python3 -m venv noxenv
noxenv/bin/pip install nox
- name: Run lint
run: |
export NOXSESSION="lint"
Expand All @@ -35,21 +39,26 @@ jobs:
fail-fast: false
matrix:
python-version: [ '3.6', '3.7', '3.8', '3.9', '3.10', '3.11' ]

name: Test Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup git submodule
run: git submodule update --init --recursive

- name: Setup python
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
architecture: x64

- name: Setup virtualenv
run: |
# Always install nox into Python 3, regardless of the Python version used.
python3 -m venv noxenv
noxenv/bin/pip install nox
- name: Run nox tests
run: |
export NOXSESSION="unit-${{ matrix.python-version }}"
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,28 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macos-10.15]
os: [ubuntu-20.04, windows-2019, macos-11]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup git submodule
run: git submodule update --init --recursive

- name: Checkout cmark-gfm
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: github/cmark-gfm
path: cmark-gfm

- uses: actions/setup-python@v2
- uses: actions/setup-python@v3
name: Install Python
with:
python-version: '3.9'
python-version: '3.11'

- name: Install build deps
run: |
python -m pip --disable-pip-version-check install cibuildwheel==2.3.0 twine==3.7.1
python -m pip --disable-pip-version-check install cibuildwheel==2.10.0 twine==4.0.1
- uses: docker/setup-qemu-action@v1
if: runner.os == 'Linux'
Expand All @@ -61,7 +62,7 @@ jobs:
run: |
twine upload --skip-existing ./dist/*
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
path: |
./wheelhouse/*.whl
Expand Down

0 comments on commit 3c85fc0

Please sign in to comment.