Skip to content

add module for storing computation timings #140

add module for storing computation timings

add module for storing computation timings #140

Workflow file for this run

name: Tests
on:
push:
branches:
- main
- '**'
paths-ignore:
- 'docs/**'
- '*.md'
- '*.rst'
- '*.txt'
pull_request:
branches:
- main
- '*.x'
paths-ignore:
- 'docs/**'
- '*.md'
- '*.rst'
- '*.txt'
jobs:
tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
env:
APPDATA: DefaultNonExistingPath
strategy:
fail-fast: false
matrix:
include:
- {name: 3.10 Mac, python: '3.10', os: macos-latest, tox: py310}
- {name: 3.10 Linux, python: '3.10', os: ubuntu-latest, tox: py310}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: update pip
run: |
python -m pip install -U pip
- name: get pip cache dir
id: pip-cache
run: echo "::set-output name=dir::$(pip cache dir)"
- name: cache pip
uses: actions/cache@v3
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: pip|${{ runner.os }}|${{ matrix.python }}|${{ hashFiles('requirements/*.txt') }}
restore-keys: pip|${{ runner.os }}|${{ matrix.python }}
- run: pip install tox
env:
APPDATA: DefaultNonExistingPath
- run: tox -e ${{ matrix.tox }}