Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Continuous Integration
on:
schedule:
- cron: '0 0 * * 2'
push:
branches:
- main
pull_request:
branches:
- main
paths:
- .github/workflows/ci.yml
- "exopy_pulses/**"
- "tests/**"
- setup.py

jobs:
tests:
name: Unit tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
python-version: [3.7, 3.8, 3.9]
fail-fast: false
steps:
- name: Checkout branch
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install https://github.com/Exopy/exopy/tarball/main
- name: Install project
run: |
python setup.py develop
- name: Install pytest
run: |
python -m pip install pytest pytest-cov pytest-qt pytest-timeout
python -m pip install https://github.com/MatthieuDartiailh/enaml_coverage_plugin/tarball/master
- name: Run tests (Windows)
if: matrix.os != 'ubuntu-latest'
run: python -X dev -m pytest tests --cov enaml --cov-report xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
if: matrix.os != 'windows-latest'
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true
76 changes: 0 additions & 76 deletions .travis.yml

This file was deleted.

5 changes: 0 additions & 5 deletions conda/bld.bat

This file was deleted.

5 changes: 0 additions & 5 deletions conda/build.sh

This file was deleted.

32 changes: 0 additions & 32 deletions conda/meta.yaml

This file was deleted.

29 changes: 0 additions & 29 deletions continuous-integration/anaconda-push.py

This file was deleted.

8 changes: 0 additions & 8 deletions continuous-integration/deploy.sh

This file was deleted.

2 changes: 1 addition & 1 deletion exopy_pulses/testing/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
pytests_plugin = str('exopy.testing.fixtures'),


@pytest.yield_fixture
@pytest.fixture
def pulses_workbench(monkeypatch, app_dir):
"""Setup the workbench in such a way that the pulses manager can be tested.

Expand Down
2 changes: 1 addition & 1 deletion exopy_pulses/testing/workspace/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
pytests_plugin = str('exopy_pulses.testing.fixtures'),


@pytest.yield_fixture
@pytest.fixture
def pulses_workspace(pulses_workbench, exopy_qtbot):
"""Create a measure workspace.

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ def long_description():
'Natural Language :: English',
'Operating System :: OS Independent',
'Topic :: Scientific/Engineering :: Physics',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
zip_safe=False,
python_requires='>=3.6',
Expand Down