Skip to content

Commit

Permalink
Add workaround for horribly slow macOS runners
Browse files Browse the repository at this point in the history
  • Loading branch information
sio committed Sep 4, 2020
1 parent 3813ff1 commit 2d9c612
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ jobs:
if: matrix.os == 'windows-latest'
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/development-tools-for-github-actions#set-an-environment-variable-set-env

- name: Workaround for slow macOS runners
run: echo "::set-env name=TEST_SUBPROCESS_TIMEOUT::300"
if: matrix.os == 'macos-latest'

- name: Run automated tests
run: make -C tests test-verbose

Expand Down
2 changes: 1 addition & 1 deletion tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class MakefileTestCase(TestCase):

MAKEFILE = 'Makefile.venv'
MAKE = 'make'
TIMEOUT = 60 # seconds
TIMEOUT = int(os.getenv('TEST_SUBPROCESS_TIMEOUT', 60)) # seconds
TMPPREFIX = 'Makefile.venv_test_'

def make(self, *args, makefile=None, debug=False, dry_run=False, returncode=0):
Expand Down

0 comments on commit 2d9c612

Please sign in to comment.