Skip to content

Commit 9ba74e5

Browse files
Merge pull request #175 from Exopy/ci
cis: switch to Github actions
2 parents 5b59305 + a0eda6c commit 9ba74e5

File tree

34 files changed

+93
-206
lines changed

34 files changed

+93
-206
lines changed

.github/workflows/ci.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Continuous Integration
2+
on:
3+
schedule:
4+
- cron: '0 0 * * 2'
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
branches:
10+
- main
11+
paths:
12+
- .github/workflows/ci.yml
13+
- "exopy/**"
14+
- "tests/**"
15+
- setup.py
16+
17+
jobs:
18+
tests:
19+
name: Unit tests
20+
runs-on: ${{ matrix.os }}
21+
strategy:
22+
matrix:
23+
os: [windows-latest]
24+
python-version: [3.7, 3.8, 3.9]
25+
fail-fast: false
26+
steps:
27+
- name: Checkout branch
28+
uses: actions/checkout@v2
29+
- name: Set up Python ${{ matrix.python-version }}
30+
uses: actions/setup-python@v2
31+
with:
32+
python-version: ${{ matrix.python-version }}
33+
- name: Install dependencies
34+
run: |
35+
python -m pip install --upgrade pip
36+
python -m pip install wheel pyqt5
37+
- name: Install project
38+
run: |
39+
python setup.py develop
40+
- name: Install pytest
41+
run: |
42+
python -m pip install pytest pytest-cov pytest-qt pytest-timeout
43+
python -m pip install https://github.com/MatthieuDartiailh/enaml_coverage_plugin/tarball/master
44+
- name: Run tests (Windows)
45+
if: matrix.os != 'ubuntu-latest'
46+
run: python -X dev -m pytest tests --cov enaml --cov-report xml
47+
- name: Upload coverage to Codecov
48+
uses: codecov/codecov-action@v1
49+
if: matrix.os != 'windows-latest'
50+
with:
51+
token: ${{ secrets.CODECOV_TOKEN }}
52+
flags: unittests
53+
name: codecov-umbrella
54+
fail_ci_if_error: true

.travis.yml

Lines changed: 0 additions & 77 deletions
This file was deleted.

conda/bld.bat

Lines changed: 0 additions & 5 deletions
This file was deleted.

conda/build.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

conda/meta.yaml

Lines changed: 0 additions & 50 deletions
This file was deleted.

continuous-integration/anaconda-push.py

Lines changed: 0 additions & 29 deletions
This file was deleted.

continuous-integration/deploy.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/source/dev_guide/testing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ after the tests.
102102

103103
To avoid duplicating a lot of code Pytest provides fixture functions. A fixture
104104
function is imply a function decorated with '@pytest.fixture' (or
105-
'@pytest.yield_fixture') which, when passed as argument of a test function,
105+
'@pytest.fixture') which, when passed as argument of a test function,
106106
will be called automatically by pytest. Standard fixture simply gives access to
107107
a value, yield_fixture allow to cleanup after the test execution. Note that a
108108
fixture can rely on another fixture.
@@ -113,7 +113,7 @@ fixture can rely on another fixture.
113113
def tool():
114114
return 1
115115
116-
@pytest.yield_fixture
116+
@pytest.fixture
117117
def clean_tool(tool):
118118
yield tool # This will pass 1 to the test function
119119
del tool # This is executed after the test function (no matter the errors)

exopy/app/errors/manifest.enaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"""
1212
import logging
1313
from pprint import pformat
14-
from collections import defaultdict, Mapping
14+
from collections import defaultdict
15+
from collections.abc import Mapping
1516

1617
from enaml.workbench.api import PluginManifest, ExtensionPoint, Extension
1718
from enaml.workbench.core.api import Command

exopy/app/packages/manifest.enaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ unregistered first).
1818

1919
"""
2020
import logging
21-
from collections import Mapping
21+
from collections.abc import Mapping
2222
from pprint import pformat
2323

2424
from enaml.workbench.api import PluginManifest, Extension

0 commit comments

Comments
 (0)