Skip to content

Commit

Permalink
Convert CI to Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Jul 5, 2021
1 parent 9fb6134 commit 07188eb
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 7 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Test

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 2.7, 3.5, 3.6, 3.7, 3.8, 3.9, ]
steps:
- uses: actions/checkout@v2

- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('pyproject.toml') }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
pip install . pytest pytest-cov
- name: Run tests
run: pytest --cov=astcheck

- name: Upload coverage to codecov
uses: codecov/codecov-action@v1
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

0 comments on commit 07188eb

Please sign in to comment.