Skip to content

Commit 996b036

Browse files
committed
Run tests in Actions
1 parent 8671ea1 commit 996b036

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Run Tests
2+
3+
on: [pull_request, push]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Dump GitHub context
10+
env:
11+
GITHUB_CONTEXT: ${{ toJson(github) }}
12+
run: echo "$GITHUB_CONTEXT"
13+
- name: Set up Python 3.6
14+
uses: actions/setup-python@v1
15+
with:
16+
python-version: 3.6
17+
- name: Versions
18+
run: |
19+
python3 --version
20+
- name: Checkout Current Repo
21+
uses: actions/checkout@v1
22+
with:
23+
submodules: true
24+
- name: Install pytest
25+
run: pip install pytest
26+
- name: Install locally
27+
run: pip install .
28+
- name: Run tests
29+
run: pytest

0 commit comments

Comments
 (0)