mirror of
https://github.com/zoriya/guessit.git
synced 2026-06-02 10:38:01 +00:00
feat(python): add python 3.10 support, drop python 3.5 support
This commit is contained in:
+18
-23
@@ -11,22 +11,22 @@ jobs:
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: [ 3.5, 3.6, 3.7, 3.8, 3.9 ] # pypy-3.6, pypy-3.7 are supported but a bit slow.
|
||||
python-version: [ "3.6", "3.7", "3.8", "3.9", "3.10" ] # pypy-3.6, pypy-3.7 are supported but a bit slow.
|
||||
regex: [ "0", "1" ]
|
||||
exclude:
|
||||
# regex module doesn't play well with pypy and unicode.
|
||||
- python-version: pypy-3.6
|
||||
- python-version: "pypy-3.6"
|
||||
regex: "1"
|
||||
- python-version: pypy-3.7
|
||||
- python-version: "pypy-3.7"
|
||||
regex: "1"
|
||||
# test regex module only with Python 3.8.
|
||||
- python-version: 3.5
|
||||
# test regex module only with Python 3.9.
|
||||
- python-version: "3.6"
|
||||
regex: "1"
|
||||
- python-version: 3.6
|
||||
- python-version: "3.7"
|
||||
regex: "1"
|
||||
- python-version: 3.7
|
||||
- python-version: "3.8"
|
||||
regex: "1"
|
||||
- python-version: 3.9
|
||||
- python-version: "3.10"
|
||||
regex: "1"
|
||||
|
||||
steps:
|
||||
@@ -35,11 +35,6 @@ jobs:
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Upgrade setuptools
|
||||
run: |
|
||||
pip install --upgrade setuptools
|
||||
if: matrix.python-version == '3.5'
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
@@ -82,10 +77,10 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Setup python 3.8
|
||||
- name: Setup python 3.9
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.8
|
||||
python-version: 3.9
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
@@ -119,10 +114,10 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Setup python 3.8
|
||||
- name: Setup python 3.9
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.8
|
||||
python-version: 3.9
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
@@ -160,10 +155,10 @@ jobs:
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- name: Setup python 3.8
|
||||
- name: Setup python 3.9
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.8
|
||||
python-version: 3.9
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
@@ -200,10 +195,10 @@ jobs:
|
||||
runs-on: macos-latest
|
||||
|
||||
steps:
|
||||
- name: Setup python 3.8
|
||||
- name: Setup python 3.9
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.8
|
||||
python-version: 3.9
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
@@ -240,10 +235,10 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Setup python 3.8
|
||||
- name: Setup python 3.9
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.8
|
||||
python-version: 3.9
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
@@ -16,10 +16,10 @@ jobs:
|
||||
- run: mkdocs build
|
||||
|
||||
- name: Deploy 🚀
|
||||
uses: JamesIves/github-pages-deploy-action@3.7.1
|
||||
uses: JamesIves/github-pages-deploy-action@4.1.5
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
BRANCH: gh-pages
|
||||
FOLDER: site
|
||||
CLEAN: true
|
||||
SINGLE_COMMIT: true
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
branch: gh-pages
|
||||
folder: site
|
||||
clean: true
|
||||
single-commit: true
|
||||
|
||||
Reference in New Issue
Block a user