Skip to content

Commit

Permalink
Replace travis with GitHub Actions (#2652)
Browse files Browse the repository at this point in the history
  • Loading branch information
stealthycoin authored Oct 29, 2020
1 parent 3ce1a44 commit 6d92207
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 32 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/fail-master-prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: PRs against master are not accepted, please target develop branch

on:
pull_request:
branches: [ master ]

jobs:
fail:
runs-on: ubuntu-latest
steps:
- name: Fail PRs against master
run: |
echo "PRs must be made aginst the develop branch."
exit 1
35 changes: 35 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@

name: Run tests

on:
push:
pull_request:
branches-ignore: [ master ]

jobs:
build:

runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
os: [ubuntu-latest, macOS-latest, windows-latest ]
include:
# Python 3.4 is not available on mac and windows so it needs to to
# be manually added to the matrix for linux.
- python-version: 3.4
os: ubuntu-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: Install dependencies
run: |
python scripts/ci/install
- name: Run tests
run: |
python scripts/ci/run-tests
32 changes: 0 additions & 32 deletions .travis.yml

This file was deleted.

0 comments on commit 6d92207

Please sign in to comment.