Fix duration logger action
@@ -5,7 +5,7 @@ on: [workflow_dispatch]
jobs:
build:
- runs-on: ${{ matrix.operating-system }}
+ runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
@@ -14,7 +14,7 @@ jobs:
max-parallel: 1
matrix:
python-version: ['3.8']
- operating-system: [ubuntu-latest]
+ os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
@@ -29,7 +29,7 @@ jobs:
# This path is specific to Ubuntu
path: ~/.cache/pip
# Look to see if there is a cache hit for the corresponding requirements file
- key: ${{ runner.os }}-pip-${{ hashFiles('requirements/min_requirements_pip.txt') }}
+ key: ${{ runner.os }}-pip-${{ hashFiles('requirements/pip_requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
@@ -37,22 +37,21 @@ jobs:
- name: Install dependencies (pip)
run: |
pip install wheel
- pip install -r requirements/min_requirements_pip.txt
- # pip install -r requirements/test_requirements.txt
- pip install git+https://github.com/jerry-git/pytest-split.git@master
+ pip install -r requirements/pip_requirements.txt
+ pip install -r requirements/test_requirements.txt
# Install porespy from the checked-out branch
pip install -e . --no-deps
- - name: Running tests and examples
+ - name: Running unit tests and examples
run: |
rm test/fixtures/.test_durations*
pytest \
--nbval-lax examples/ \
--store-durations \
--durations-path test/fixtures/.test_durations_examples
- # pytest \
- # --store-durations \
- # --durations-path test/fixtures/.test_durations_unit
+ pytest test/ \
+ --store-durations \
+ --durations-path test/fixtures/.test_durations_unit
- name: Committing test duration files
uses: EndBug/add-and-commit@v7
