Skip to content

Commit

Permalink
Enable CI tests on MacOS (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamreeve committed Sep 18, 2021
1 parent 8f461e7 commit 15c3fba
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
strategy:
fail-fast: false
matrix:
python: ['2.7', '3.5', '3.6', '3.7', '3.8', '3.9']
os: [ubuntu-latest, windows-latest]
python: ['2.7', '3.6', '3.7', '3.8', '3.9']
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/*.egg-info
/coverage
/.coverage
coverage.xml
/MANIFEST
*.pyc
*.swp
Expand Down
6 changes: 6 additions & 0 deletions nptdms/test/test_tdms_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
from nptdms.test import scenarios


if sys.platform == "darwin":
# MacOS tests often take longer to run initially on GitHub actions
settings.register_profile('macos', deadline=5000)
settings.load_profile('macos')


@pytest.mark.parametrize("test_file,expected_data", scenarios.get_scenarios())
def test_read_channel_data(test_file, expected_data):
"""Test reading data"""
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{27,35,36,37,38},pycodestyle
envlist = py{27,36,37,38,39},pycodestyle

[pycodestyle]
max-line-length = 120
Expand Down

0 comments on commit 15c3fba

Please sign in to comment.