Skip to content

Commit 295a131

Browse files
committed
Switch to Travis CI
1 parent 9409ba2 commit 295a131

File tree

2 files changed

+40
-20
lines changed

2 files changed

+40
-20
lines changed

.github/workflows/test-and-lint.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Test and lint
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: [3.6, 3.7, 3.8, 3.9.0-rc.2]
12+
fail-fast: false
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Set up Python ${{ matrix.python-version }}
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
- name: Cache dependencies
21+
uses: actions/cache@v1
22+
with:
23+
path: ~/.cache/pip
24+
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('requirements.txt') }}
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install -r requirements.txt
29+
- name: Lint with flake8
30+
run: |
31+
flake8 --version
32+
flake8 --show-source --statistics asserts test_asserts.py
33+
- name: Type checking with mypy
34+
run: |
35+
mypy --version
36+
mypy asserts test_asserts.py
37+
- name: Test with unittest
38+
run: python -Wall -m unittest test_asserts
39+
- name: Run doctests
40+
run: python -m doctest asserts/__init__.py

.travis.yml

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

0 commit comments

Comments
 (0)