Skip to content

Commit

Permalink
Switch to Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
srittau committed Oct 6, 2020
1 parent 9409ba2 commit 295a131
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 20 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/test-and-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Test and lint

on: [push]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9.0-rc.2]
fail-fast: false

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Cache dependencies
uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('requirements.txt') }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with flake8
run: |
flake8 --version
flake8 --show-source --statistics asserts test_asserts.py
- name: Type checking with mypy
run: |
mypy --version
mypy asserts test_asserts.py
- name: Test with unittest
run: python -Wall -m unittest test_asserts
- name: Run doctests
run: python -m doctest asserts/__init__.py
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

0 comments on commit 295a131

Please sign in to comment.