add IPC23 benchmarks #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ubuntu | |
# see https://github.community/t5/GitHub-Actions/How-to-trigger-an-action-on-push-or-pull-request-but-not-both/m-p/35805 | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
python-version: [2.7, 3.6, 3.7, 3.8] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Show environment | |
run: | | |
python --version | |
python3 -c "import multiprocessing as m; print('CPUs:', m.cpu_count())" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip tox | |
- name: Check style | |
if: matrix.python-version == '3.6' | |
run: | | |
tox -e style | |
- name: Run tests | |
run: | | |
tox -e py |