Skip to content

Commit

Permalink
Merge pull request #54: Replace Travis CI with GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed Sep 17, 2021
2 parents 8eb0f01 + 2cbca92 commit 761ede5
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 25 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Test

on: [push, pull_request]

env:
FORCE_COLOR: 1

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10-dev", "pypy3"]
os: [ubuntu-latest]
include:
- { python-version: "3.7", os: macos-latest }

steps:
- uses: actions/checkout@v2

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

- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
- name: Cache
uses: actions/cache@v2
with:
path: ${{ steps.pip-cache.outputs.dir }}
key:
${{ matrix.os }}-${{ matrix.python-version }}-v1-${{
hashFiles('**/setup.py') }}
restore-keys: |
${{ matrix.os }}-${{ matrix.python-version }}-v1-
- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install -U setuptools virtualenv
python -m pip install -U --requirement=requirements-travis.txt
python -m pip install .
- name: Tests
run: |
make check
make test
- name: Upload coverage
uses: codecov/codecov-action@v1
with:
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
*.pyc
.coverage
.coverage.*
.tox
__pycache__/
dist/*.tar.gz
dist/*.zip
Expand Down
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

0 comments on commit 761ede5

Please sign in to comment.