1
0
Fork 0
mirror of https://github.com/ultrajson/ultrajson.git synced 2024-06-02 14:46:04 +02:00
ultrajson/.github/workflows/benchmark.yml

42 lines
1019 B
YAML
Raw Normal View History

2020-03-23 15:39:19 +01:00
name: Benchmark
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
2020-03-23 16:39:48 +01:00
python-version: ["3.8"]
2020-03-23 15:39:19 +01:00
os: [ubuntu-18.04]
steps:
- uses: actions/checkout@v2
- name: Ubuntu cache
uses: actions/cache@v1
if: startsWith(matrix.os, 'ubuntu')
with:
path: ~/.cache/pip
key:
${{ matrix.os }}-${{ matrix.python-version }}-${{ hashFiles('**/setup.py')
}}
restore-keys: |
${{ matrix.os }}-${{ matrix.python-version }}-
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
2020-03-23 18:05:51 +01:00
python -m pip install --upgrade nujson orjson simplejson ujson
2020-03-23 15:39:19 +01:00
- name: Tests
shell: bash
run: |
python tests/benchmark.py