Skip to content

Commit bed71e3

Browse files
committed
Switch pipeline to Github Actions
1 parent 3ed2adb commit bed71e3

File tree

2 files changed

+60
-53
lines changed

2 files changed

+60
-53
lines changed

.github/workflows/ci.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Build the documentation
2+
3+
on:
4+
pull_request:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
tests:
11+
name: Run tests
12+
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
python-version:
17+
[
18+
3.10-dev,
19+
3.9,
20+
3.8,
21+
3.7.3,
22+
3.7.2,
23+
3.7.1,
24+
3.7,
25+
3.6.2,
26+
3.6.1,
27+
3.6,
28+
3.5.3,
29+
3.5.2,
30+
3.5,
31+
3.4,
32+
2.7,
33+
]
34+
35+
runs-on: ubuntu-latest
36+
37+
steps:
38+
- uses: actions/checkout@v2
39+
40+
- name: Set up Python
41+
uses: actions/setup-python@v2
42+
with:
43+
python-version: ${{ matrix.python-version }}
44+
45+
- name: Install dependencies
46+
run: |
47+
python -m pip install --upgrade pip
48+
pip install -r test-requirements.txt
49+
50+
- name: Run tests
51+
env:
52+
PYTHON_VERSION: ${matrix.python-version}
53+
run: |
54+
export PYTHONPATH=`python -c "import sys; print('python2' if sys.version.startswith('2') else 'src')"`;
55+
if [[ $PYTHON_VERSION < '3.7' ]]; then py.test $PYTHONPATH; fi
56+
if [[ $PYTHON_VERSION < '3.5' ]]; then pip install -U .; fi
57+
export PYTHONPATH=`python -c "import sys; print('typing_extensions/src_py2' if sys.version.startswith('2') else 'typing_extensions/src_py3')"`;
58+
py.test $PYTHONPATH;
59+
if [[ $PYTHON_VERSION == '3.8' ]]; then flake8; fi
60+
if [[ $PYTHON_VERSION == '3.8' ]]; then flake8 --config=.flake8-tests src/test_typing.py python2/test_typing.py typing_extensions/src_py2/test_typing_extensions.py typing_extensions/src_py3/test_typing_extensions.py; fi

.travis.yml

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

0 commit comments

Comments
 (0)