Skip to content

Commit 4fe31e0

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

File tree

2 files changed

+43
-53
lines changed

2 files changed

+43
-53
lines changed

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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: [3.10-dev, 3.9, 3.8, 3.7, 3.6, 3.5, 3.4.10, 2.7]
17+
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
23+
- name: Set up Python
24+
uses: actions/setup-python@v2
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install --upgrade pip
31+
pip install -r test-requirements.txt
32+
33+
- name: Run tests
34+
env:
35+
PYTHON_VERSION: ${matrix.python-version}
36+
run: |
37+
export PYTHONPATH=`python -c "import sys; print('python2' if sys.version.startswith('2') else 'src')"`;
38+
if [[ $PYTHON_VERSION < '3.7' ]]; then py.test $PYTHONPATH; fi
39+
if [[ $PYTHON_VERSION < '3.5' ]]; then pip install -U .; fi
40+
export PYTHONPATH=`python -c "import sys; print('typing_extensions/src_py2' if sys.version.startswith('2') else 'typing_extensions/src_py3')"`;
41+
py.test $PYTHONPATH;
42+
if [[ $PYTHON_VERSION == '3.8' ]]; then flake8; fi
43+
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)