mirror of
https://github.com/ultrajson/ultrajson.git
synced 2024-06-07 19:36:07 +02:00
Merge pull request #430 from hugovk/add-python-3.9
This commit is contained in:
commit
da610577cc
|
@ -2,28 +2,27 @@ name: Lint
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
env:
|
||||||
|
FORCE_COLOR: 1
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: pip cache
|
- name: Cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/pip
|
path: |
|
||||||
key: lint-pip-${{ hashFiles('**/setup.py') }}
|
~/.cache/pip
|
||||||
|
~/.cache/pre-commit
|
||||||
|
key:
|
||||||
|
lint-${{ hashFiles('**/setup.py') }}-${{
|
||||||
|
hashFiles('**/.pre-commit-config.yaml') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
lint-pip-
|
lint-
|
||||||
|
|
||||||
- name: pre-commit cache
|
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: ~/.cache/pre-commit
|
|
||||||
key: lint-pre-commit-v1-${{ hashFiles('**/.pre-commit-config.yaml') }}
|
|
||||||
restore-keys: |
|
|
||||||
lint-pre-commit-v1-
|
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
|
@ -37,3 +36,5 @@ jobs:
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: pre-commit run --all-files
|
run: pre-commit run --all-files
|
||||||
|
env:
|
||||||
|
PRE_COMMIT_COLOR: always
|
||||||
|
|
|
@ -8,14 +8,16 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [ "3.6", "3.7", "3.8"]
|
python-version: [ "3.6", "3.7", "3.8", "3.9"]
|
||||||
os: [ubuntu-18.04, ubuntu-16.04, macos-latest, windows-2019]
|
os: [ubuntu-18.04, ubuntu-16.04, macos-latest, windows-2019]
|
||||||
include:
|
include:
|
||||||
# PyPy3
|
# PyPy3
|
||||||
- { python-version: "pypy3", os: ubuntu-18.04 }
|
- { python-version: "pypy3", os: ubuntu-18.04 }
|
||||||
- { python-version: "pypy3", os: ubuntu-16.04 }
|
- { python-version: "pypy3", os: ubuntu-16.04 }
|
||||||
# Dev versions
|
# Dev versions
|
||||||
- { python-version: "3.9-dev", os: ubuntu-18.04 }
|
# 3.10-dev blocked by:
|
||||||
|
# AssertionError: would build wheel with unsupported tag ('cp310', 'cp310', 'linux_x86_64')
|
||||||
|
#- { python-version: "3.10-dev", os: ubuntu-18.04 }
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -35,10 +37,9 @@ jobs:
|
||||||
- name: Get pip cache dir
|
- name: Get pip cache dir
|
||||||
id: pip-cache
|
id: pip-cache
|
||||||
run: |
|
run: |
|
||||||
python -m pip install -U "pip>=20.1"
|
|
||||||
echo "::set-output name=dir::$(pip cache dir)"
|
echo "::set-output name=dir::$(pip cache dir)"
|
||||||
|
|
||||||
- name: pip cache
|
- name: Cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.pip-cache.outputs.dir }}
|
path: ${{ steps.pip-cache.outputs.dir }}
|
||||||
|
|
1
setup.py
1
setup.py
|
@ -11,6 +11,7 @@ Programming Language :: Python :: 3
|
||||||
Programming Language :: Python :: 3.6
|
Programming Language :: Python :: 3.6
|
||||||
Programming Language :: Python :: 3.7
|
Programming Language :: Python :: 3.7
|
||||||
Programming Language :: Python :: 3.8
|
Programming Language :: Python :: 3.8
|
||||||
|
Programming Language :: Python :: 3.9
|
||||||
Programming Language :: Python :: 3 :: Only
|
Programming Language :: Python :: 3 :: Only
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue