8000 GitHub Actions tests on Ubuntu; remove Travis CI (#92) · python/pyperformance@24748f9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 24748f9

Browse files
authored
GitHub Actions tests on Ubuntu; remove Travis CI (#92)
1 parent 7557f55 commit 24748f9

File tree

2 files changed

+41
-42
lines changed

2 files changed

+41
-42
lines changed

.github/workflows/main.yml

Lines changed: 41 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,41 @@
1-
name: test
2-
3-
on: [push, pull_request]
4-
5-
jobs:
6-
7-
test:
8-
runs-on: ${{ matrix.os }}
9-
name: ${{ matrix.os }} - py${{ matrix.python-version }}
10-
strategy:
11-
matrix:
12-
os: [windows-latest]
13-
python-version: [3.6, 3.7, 3.8, 3.9]
14-
steps:
15-
- uses: actions/checkout@v2
16-
- name: Set up Python ${{ matrix.python-version }}
17-
uses: actions/setup-python@v2
18-
with:
19-
python-version: ${{ matrix.python-version }}
20-
- name: Install
21-
run: |
22-
pip install --upgrade pip setuptools
23-
pip install -e .
24-
- name: Run Tests
25-
run: |
26-
python runtests.py
1+
name: test
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
11+
test:
12+
runs-on: ${{ matrix.os }}
13+
name: ${{ matrix.os }} - ${{ matrix.python }}
14+
strategy:
15+
matrix:
16+
os: [windows-latest, ubuntu-latest]
17+
python: [3.9]
18+
include:
19+
- os: ubuntu-latest
20+
python: 3.6
21+
- os: ubuntu-latest
22+
python: 3.9
23+
- os: ubuntu-latest
24+
python: pypy3
25+
- os: windows-latest
26+
steps:
27+
- uses: actions/checkout@v2
28+
- name: Set up Python ${{ matrix.python }}
29+
uses: actions/setup-python@v2
30+
with:
31+
python-version: ${{ matrix.python }}
32+
- name: Install
33+
# pyperformance must be installed:
34+
# pyperformance/tests/test_compare.py imports it
35+
run: |
36+
python -m pip install --upgrade pip setuptools
37+
python -m pip install -e .
38+
- name: Display Python version
39+
run: python -c "import sys; print(sys.version)"
40+
- name: Run Tests
41+
run: python runtests.py

.travis.yml

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

0 commit comments

Comments
 (0)
0