Skip to content

Commit 80f4306

Browse files
committed
chore: Migrate to Github Actions (closes #183)
1 parent d80675b commit 80f4306

File tree

3 files changed

+53
-18
lines changed

3 files changed

+53
-18
lines changed

.github/workflows/workflow.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: pslab-python
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
lint:
9+
name: Lint
10+
runs-on: ubuntu-latest
11+
# The setup steps are duplicated between jobs. We should create a
12+
# composite action for the setup, once composite actions support
13+
# "uses".
14+
steps:
15+
- uses: actions/checkout@v1
16+
- uses: actions/setup-python@v2
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- run: |
20+
python -m pip install --upgrade pip
21+
pip install tox tox-gh-actions
22+
- run: tox -e lint
23+
24+
docs:
25+
name: Docs
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v1
29+
- uses: actions/setup-python@v2
30+
with:
31+
python-version: ${{ matrix.python-version }}
32+
- run: |
33+
python -m pip install --upgrade pip
34+
pip install tox tox-gh-actions
35+
- run: tox -e docs
36+
37+
test:
38+
name: Test
39+
runs-on: ubuntu-latest
40+
strategy:
41+
matrix:
42+
python-version: [3.6, 3.7, 3.8, 3.9]
43+
steps:
44+
- uses: actions/checkout@v1
45+
- uses: actions/setup-python@v2
46+
with:
47+
python-version: ${{ matrix.python-version }}
48+
- run: |
49+
python -m pip install --upgrade pip
50+
pip install tox tox-gh-actions
51+
- run: tox -e playback

.travis.yml

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

tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
[tox]
22

3+
[gh-actions]
4+
35
[testenv:playback]
46
deps =
57
-rrequirements.txt

0 commit comments

Comments
 (0)