Skip to content

Commit

Permalink
Migrates CI/CD from Travis to GH Actions. (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
cheqianh committed Sep 17, 2021
1 parent 4490c86 commit 0c6a622
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 14 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: build and test

on:
pull_request:
branches: [ master ]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.6', '3.7', '3.8', '3.9', 'pypy-3.6']
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Create a virtual environment
run: git submodule init && git submodule update && python3 -m venv ./venv && . venv/bin/activate

- run: pip install --upgrade setuptools
- run: pip install -r requirements.txt
- run: pip install .
- run: py.test
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

0 comments on commit 0c6a622

Please sign in to comment.