1
0
Fork 0
mirror of https://github.com/ultrajson/ultrajson.git synced 2024-05-17 23:56:02 +02:00

Merge pull request #430 from hugovk/add-python-3.9

This commit is contained in:
Hugo van Kemenade 2020-10-06 20:34:01 +03:00 committed by GitHub
commit da610577cc
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 17 deletions

View File

@ -2,28 +2,27 @@ name: Lint
on: [push, pull_request]
env:
FORCE_COLOR: 1
jobs:
build:
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: pip cache
- name: Cache
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: lint-pip-${{ hashFiles('**/setup.py') }}
path: |
~/.cache/pip
~/.cache/pre-commit
key:
lint-${{ hashFiles('**/setup.py') }}-${{
hashFiles('**/.pre-commit-config.yaml') }}
restore-keys: |
lint-pip-
- 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-
lint-
- name: Set up Python
uses: actions/setup-python@v2
@ -37,3 +36,5 @@ jobs:
- name: Lint
run: pre-commit run --all-files
env:
PRE_COMMIT_COLOR: always

View File

@ -8,14 +8,16 @@ jobs:
strategy:
fail-fast: false
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]
include:
# PyPy3
- { python-version: "pypy3", os: ubuntu-18.04 }
- { python-version: "pypy3", os: ubuntu-16.04 }
# 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:
- uses: actions/checkout@v2
@ -35,10 +37,9 @@ jobs:
- name: Get pip cache dir
id: pip-cache
run: |
python -m pip install -U "pip>=20.1"
echo "::set-output name=dir::$(pip cache dir)"
- name: pip cache
- name: Cache
uses: actions/cache@v2
with:
path: ${{ steps.pip-cache.outputs.dir }}

View File

@ -11,6 +11,7 @@ Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3 :: Only
"""