Skip to content

Commit 68bba09

Browse files
committed
Replace travis with Github Actions
1 parent 0f313e4 commit 68bba09

File tree

4 files changed

+44
-60
lines changed

4 files changed

+44
-60
lines changed

.github/workflows/build.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
# run at 7:00 on the first of every month
8+
- cron: '0 7 1 * *'
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
python-version: [3.6, 3.7, 3.8, 3.9]
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v2
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install -r requirements.txt
26+
pip install pytest pytest-cov urwid twisted watchdog "jedi >=0.16" babel "sphinx >=1.5"
27+
- name: Build with Python ${{ matrix.python-version }}
28+
run: |
29+
python setup.py build
30+
- name: Build documentation
31+
run: |
32+
python setup.py build_sphinx
33+
python setup.py build_sphinx_man
34+
- name: Test with pytest
35+
run: |
36+
pytest --cov=bpython --cov-report=xml
37+
- name: Upload coverage to Codecov
38+
uses: codecov/codecov-action@v1
39+
env:
40+
PYTHON_VERSION: ${{ matrix.python-version }}
41+
with:
42+
file: ./coverage.xml
43+
env_vars: PYTHON_VERSION
44+
if: ${{ always() }}

.travis.install.sh

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

.travis.script.sh

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

.travis.yml

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

0 commit comments

Comments
 (0)