Skip to content

Commit 7dd44df

Browse files
CI: Setup CI with Github Actions replacing Travis.
1 parent 385fb51 commit 7dd44df

File tree

2 files changed

+62
-24
lines changed

2 files changed

+62
-24
lines changed

.github/workflows/zulip-tests.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
11+
static-analysis:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Setup Python 3.6
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: 3.6
21+
22+
- name: Install dependencies
23+
run: |
24+
sudo rm -vf /etc/apt/sources.list.d/*
25+
sudo apt-get update
26+
sudo apt-get install virtualenv
27+
tools/provision --force
28+
29+
- name: Running Test-Suite
30+
run: |
31+
source zulip-api-py3-venv/bin/activate
32+
tools/test-static-analysis
33+
34+
test:
35+
runs-on: ubuntu-latest
36+
strategy:
37+
fail-fast: false
38+
matrix:
39+
python-version: [3.6, 3.7, 3.8, 3.9]
40+
41+
steps:
42+
- uses: actions/checkout@v2
43+
44+
- name: Setup Python ${{ matrix.python-version }}
45+
uses: actions/setup-python@v2
46+
with:
47+
python-version: ${{ matrix.python-version }}
48+
49+
- name: Install dependencies
50+
run: |
51+
sudo rm -vf /etc/apt/sources.list.d/*
52+
sudo apt-get update
53+
sudo apt-get install virtualenv
54+
tools/provision --force
55+
56+
- name: Running Test-Suite
57+
run: |
58+
source zulip-api-py3-venv/bin/activate
59+
tools/test-main
60+
61+
- name: Codecov
62+
uses: codecov/[email protected]

.travis.yml

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

0 commit comments

Comments
 (0)