Skip to content

Commit 60cb659

Browse files
committed
Use GitHub Actions for x86_64 tests
1 parent 686024e commit 60cb659

File tree

2 files changed

+40
-4
lines changed

2 files changed

+40
-4
lines changed

.github/workflows/test.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
name: CPython ${{ matrix.python }}
10+
runs-on: ubuntu-20.04
11+
strategy:
12+
matrix:
13+
include:
14+
- python: "3.6"
15+
- python: "3.7"
16+
- python: "3.8"
17+
- python: "3.9"
18+
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v2
22+
23+
- name: Install CPython ${{ matrix.python }}
24+
uses: actions/setup-python@v2
25+
with:
26+
python-version: ${{ matrix.python }}
27+
architecture: x64
28+
29+
- name: Install/fetch dependencies
30+
run: |
31+
set -exuo pipefail
32+
pip install --upgrade pip setuptools
33+
pip install -r test-requirements.txt
34+
pip install tox codecov
35+
pip install -e .
36+
# pull manylinux images that will be used, this helps passing tests which would otherwise timeout.
37+
python -c $'from tests.integration.test_manylinux import MANYLINUX_IMAGES\nfor image in MANYLINUX_IMAGES.values():\n print(image)' | xargs -L 1 docker pull
38+
39+
- name: Run tests
40+
run: ./tests/travis.sh

.travis.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ language: python
44

55
jobs:
66
include:
7-
- python: "3.6"
8-
- python: "3.7"
9-
- python: "3.8"
10-
- python: "3.9"
117
- python: "3.8"
128
arch: arm64-graviton2
139
virt: vm

0 commit comments

Comments
 (0)