Skip to content

Commit

Permalink
Misc CI tweaks (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
crusaderky authored Mar 22, 2023
1 parent 6b97268 commit cde32b0
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 6 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,11 @@ jobs:
with:
miniforge-variant: Mambaforge
miniforge-version: latest
condarc-file: continuous_integration/condarc
use-mamba: true
activate-environment: test
condarc-file: continuous_integration/condarc
python-version: ${{ matrix.python-version }}

- name: Install dependencies
shell: bash -l {0}
run: mamba install pytest python-lmdb psutil
environment-file: continuous_integration/environment.yml

- name: Install zict
shell: bash -l {0}
Expand Down
11 changes: 11 additions & 0 deletions continuous_integration/environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: test
channels:
- conda-forge
- defaults
dependencies:
- pip
- psutil
- python-lmdb
- pytest
- pytest-repeat
- pytest-timeout
16 changes: 15 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,21 @@ ignore =
max-line-length = 88

[tool:pytest]
addopts = -v --doctest-modules
addopts =
-v
--doctest-modules
--durations=20
--strict-markers
--strict-config

# pytest-timeout settings
# 'thread' kills off the whole test suite. 'signal' only kills the offending test.
# However, 'signal' doesn't work on Windows (due to lack of SIGALRM).
timeout_method = thread
# This should not be reduced; Windows CI has been observed to be occasionally
# exceptionally slow.
timeout = 300


[isort]
sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
Expand Down

0 comments on commit cde32b0

Please sign in to comment.