Skip to content

Commit 6337eca

Browse files
LoopThrough-i-jalexmv
authored andcommitted
CI: Setup CI with Github Actions replacing Travis.
1 parent 3e28506 commit 6337eca

File tree

2 files changed

+61
-24
lines changed

2 files changed

+61
-24
lines changed

.github/workflows/zulip-tests.yml

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

.travis.yml

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

0 commit comments

Comments
 (0)