File tree Expand file tree Collapse file tree 3 files changed +65
-122
lines changed Expand file tree Collapse file tree 3 files changed +65
-122
lines changed Original file line number Diff line number Diff line change 1+ name : Test/build
2+
3+ on : [pull_request]
4+
5+ jobs :
6+ build :
7+
8+
9+ strategy :
10+ max-parallel : 4
11+ fail-fast : false
12+ matrix :
13+ python-version : [3.6, 3.7, 3.8]
14+ platform : [ubuntu-latest, macos-latest, windows-latest]
15+ runs-on : ${{ matrix.platform }}
16+
17+ steps :
18+
19+ - uses : actions/checkout@v1
20+
21+
22+ - name : Set up Python ${{ matrix.python-version }}
23+ uses : actions/setup-python@v1
24+ with :
25+ python-version : ${{ matrix.python-version }}
26+
27+ - name : Get pip cache location
28+ id : pip-cache
29+ run : |
30+ python -c "from pip._internal.locations import USER_CACHE_DIR; print('::set-output name=dir::' + USER_CACHE_DIR)"
31+
32+ - uses : actions/cache@v1
33+ with :
34+ path : ${{ steps.pip-cache.outputs.dir }}
35+ key : ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
36+ restore-keys : |
37+ ${{ runner.os }}-pip-
38+
39+ - name : Install dependencies
40+ run : |
41+ python -m pip install --upgrade pip
42+ pip install pytest Cython wheel
43+
44+ - name : Build sdist
45+ run : |
46+ python setup.py sdist
47+
48+ - name : Build wheel
49+ run : |
50+ python setup.py bdist_wheel
51+
52+ - name : Install vpython
53+ run : |
54+ pip install .
55+
56+ - name : Run tests
57+ run : |
58+ pytest vpython
59+
60+ - name : Import test
61+ run : |
62+ python -c "import vpython"
Original file line number Diff line number Diff line change @@ -55,7 +55,9 @@ script:
5555 fi
5656 fi
5757 - echo $UPLOAD_SDIST
58- # Run tests
58+ # Run tests ALWAYS for now
59+ - pip install .
60+ - pytest vpython
5961 - if [ "$TRAVIS_OS_NAME" == "linux" ]; then
6062 python setup.py install;
6163 py.test vpython;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments