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 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..77124a5 --- /dev/null +++ b/.github/workflows/pip-install-cchardet-fails-on-python3.11.yml @@ -0,0 +1,11 @@ +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: 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