Skip to content

Commit f1a8f94

Browse files
committed
Move Github Actions
Github Actions is faster and has an integrated plugin for pre-commit
1 parent edae65f commit f1a8f94

File tree

2 files changed

+35
-13
lines changed

2 files changed

+35
-13
lines changed

.github/workflows/validate.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
3+
name: python-maxcube-api commit validation
4+
5+
on:
6+
- push
7+
- pull_request
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
python-version: [3.7, 3.8, 3.9]
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install coveralls
27+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
28+
- name: Pre-commit hooks
29+
uses: pre-commit/[email protected]
30+
- name: Unit Test Coverage
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
run: |
34+
coverage run setup.py test
35+
coveralls --service=github

.travis.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)