From 231527b479f2b1429ecd1bdea082edf8af24ebdc Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 17 Jul 2022 19:03:23 +0200 Subject: [PATCH 1/3] Upgrade GitHub Actions --- .github/workflows/build-linux.yml | 32 ++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index e380bc1..4d18cb5 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -10,24 +10,34 @@ jobs: runs-on: ubuntu-18.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v4 + name: Install Python 3.11 + with: + python-version: "3.11-dev" + + - uses: actions/setup-python@v4 + name: Install Python 3.10 + with: + python-version: "3.10" + + - uses: actions/setup-python@v4 name: Install Python 3.9 with: python-version: "3.9" - - uses: actions/setup-python@v1 + - uses: actions/setup-python@v4 name: Install Python 3.8 with: python-version: "3.8" - - uses: actions/setup-python@v1 + - uses: actions/setup-python@v4 name: Install Python 3.7 with: python-version: "3.7" - - uses: actions/setup-python@v1 + - uses: actions/setup-python@v4 name: Install Python 3.6 with: python-version: "3.6" @@ -46,6 +56,14 @@ jobs: run: | pip install -r requirements-dev.txt + - name: Test for Python 3.11 + run: | + tox -e py311 + + - name: Test for Python 3.10 + run: | + tox -e py310 + - name: Test for Python 3.9 run: | tox -e py39 @@ -67,9 +85,9 @@ jobs: run: | python -m cibuildwheel --output-dir wheelhouse env: - CIBW_BUILD: cp36-* cp37-* cp38-* cp39-* + CIBW_BUILD: cp36-* cp37-* cp38-* cp39-* cp310-* cp311-* - - uses: actions/upload-artifact@v1 + - uses: actions/upload-artifact@v3 if: contains(github.ref, 'tags/') with: name: wheels From 3085109293a516651db4fa32059d91286dfad27e Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 17 Jul 2022 22:55:13 +0200 Subject: [PATCH 2/3] GitHub Action: `python3.11 -m pip install cchardet` fails --- .../pip-install-cchardet-fails-on-python3.11.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/workflows/pip-install-cchardet-fails-on-python3.11.yml diff --git a/.github/workflows/pip-install-cchardet-fails-on-python3.11.yml b/.github/workflows/pip-install-cchardet-fails-on-python3.11.yml new file mode 100644 index 0000000..957076f --- /dev/null +++ b/.github/workflows/pip-install-cchardet-fails-on-python3.11.yml @@ -0,0 +1,10 @@ +name: pip_install_cchardet +on: [pull_request, push] +jobs: + pip_install_cchardet: + runs-on: ubuntu-latest + steps: + - uses: actions/setup-python@v4 + with: + python-version: 3.11-dev + - run: pip install cchardet From 181fc03c96e8a70e037c09bc4b5364dbf5ecb5fb Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 19 Jul 2022 10:26:48 +0200 Subject: [PATCH 3/3] Update pip-install-cchardet-fails-on-python3.11.yml --- .github/workflows/pip-install-cchardet-fails-on-python3.11.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pip-install-cchardet-fails-on-python3.11.yml b/.github/workflows/pip-install-cchardet-fails-on-python3.11.yml index 957076f..77124a5 100644 --- a/.github/workflows/pip-install-cchardet-fails-on-python3.11.yml +++ b/.github/workflows/pip-install-cchardet-fails-on-python3.11.yml @@ -7,4 +7,5 @@ jobs: - uses: actions/setup-python@v4 with: python-version: 3.11-dev - - run: pip install cchardet + - run: python3.11 -m pip install --upgrade cython>=0.29.30 + - run: python3.11 -m pip install cchardet # Will pass only if cython>=0.29.30