Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade GitHub Actions #79

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 25 additions & 7 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand All @@ -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
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/pip-install-cchardet-fails-on-python3.11.yml
Original file line number Diff line number Diff line change
@@ -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