Skip to content

Commit 35ceece

Browse files
authored
Replace travis with workflow ci (#54)
1 parent b1081b9 commit 35ceece

File tree

2 files changed

+54
-41
lines changed

2 files changed

+54
-41
lines changed

.github/workflows/ci.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Copyright 2020 Google
2+
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
16+
name: Continuous Integration
17+
18+
on: [pull_request]
19+
20+
jobs:
21+
pytest:
22+
name: Pytest Ubuntu
23+
runs-on: ubuntu-16.04
24+
steps:
25+
- uses: actions/checkout@v1
26+
- uses: actions/setup-python@v1
27+
with:
28+
python-version: '3.6'
29+
architecture: 'x64'
30+
- name: Install requirements
31+
run: |
32+
pip install -r requirements.txt
33+
- name: Pytest check
34+
run: |
35+
pip install pytest
36+
pytest
37+
pytest37:
38+
name: Pytest Ubuntu
39+
runs-on: ubuntu-16.04
40+
steps:
41+
- uses: actions/checkout@v1
42+
- uses: actions/setup-python@v1
43+
with:
44+
python-version: '3.7'
45+
architecture: 'x64'
46+
- name: Install requirements
47+
run: |
48+
pip install -r requirements.txt
49+
pip install -r dev_tools/conf/pip-list-dev-tools.txt
50+
git config --global user.name ${GITHUB_ACTOR}
51+
- name: Pytest check
52+
run: |
53+
pip install pytest
54+
pytest

.travis.yml

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

0 commit comments

Comments
 (0)