Skip to content

Commit 44d0ef5

Browse files
Migrate from travis-ci to Github Actions (#300)
1 parent 070e4a3 commit 44d0ef5

File tree

2 files changed

+81
-65
lines changed

2 files changed

+81
-65
lines changed
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: Testing Initiative
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
paths-ignore:
10+
- '.gitignore'
11+
- '*.md'
12+
- '*.rst'
13+
- 'LICENSE'
14+
- 'Vagrantfile'
15+
- 'protobuf_list.txt'
16+
- 'protobufs/**'
17+
- 'recipes/**'
18+
pull_request:
19+
branches: [ master ]
20+
paths-ignore:
21+
- '.gitignore'
22+
- '*.md'
23+
- '*.rst'
24+
- 'LICENSE'
25+
- 'Vagrantfile'
26+
- 'protobuf_list.txt'
27+
- 'protobufs/**'
28+
- 'recipes/**'
29+
jobs:
30+
test:
31+
runs-on: ${{ matrix.os }}
32+
strategy:
33+
matrix:
34+
os: [ubuntu-latest, macos-latest, windows-latest]
35+
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
36+
# exclude:
37+
# - os: macos-latest
38+
# python-version: 3.8
39+
# - os: windows-latest
40+
# python-version: 3.6
41+
steps:
42+
- uses: actions/checkout@v2
43+
- name: Set up Python Env
44+
uses: actions/setup-python@v2
45+
with:
46+
python-version: ${{ matrix.python-version }}
47+
- name: Display Python version
48+
run: python -c "import sys; print(sys.version)"
49+
- name: Install dependencies
50+
run: |
51+
pip install -r requirements.txt
52+
pip install coveralls
53+
- name: Run Tests
54+
env:
55+
PYTHONHASHSEED: "0"
56+
run: |
57+
pytest --cov=steam tests
58+
- name: Coveralls
59+
env:
60+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
62+
run: |
63+
coveralls
64+
build-docs:
65+
runs-on: ${{ matrix.os }}
66+
strategy:
67+
matrix:
68+
os: [ubuntu-latest]
69+
python-version: [3.6]
70+
steps:
71+
- uses: actions/checkout@v2
72+
- name: Set up Python Env
73+
uses: actions/setup-python@v2
74+
with:
75+
python-version: ${{ matrix.python-version }}
76+
- name: Display Python version
77+
run: python -c "import sys; print(sys.version)"
78+
- name: Install dependencies
79+
run: make init
80+
- name: Build Docs
81+
run: make docs

.travis.yml

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

0 commit comments

Comments
 (0)