Skip to content

Commit 41e5536

Browse files
Merge pull request #28 from encode/test-framework
Test framework
2 parents e9a4a36 + eb5ab58 commit 41e5536

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

.github/workflows/test-suite.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: Test Suite
33

44
on:
55
push:
6-
branches: ["master"]
6+
branches: ["main"]
77
pull_request:
8-
branches: ["master", "version-*"]
8+
branches: ["main"]
99

1010
jobs:
1111
tests:
@@ -23,6 +23,8 @@ jobs:
2323
python-version: "${{ matrix.python-version }}"
2424
- name: "Install dependencies"
2525
run: "scripts/install"
26+
- name: "Run tests"
27+
run: "scripts/test"
2628

2729
# - name: "Run linting checks"
2830
# run: "scripts/check"
@@ -31,4 +33,4 @@ jobs:
3133
# - name: "Run tests"
3234
# run: "scripts/test"
3335
# - name: "Enforce coverage"
34-
# run: "scripts/coverage"
36+
# run: "scripts/coverage"

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
-e .
2+
3+
pytest

scripts/test

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh -e
2+
3+
export PREFIX=""
4+
if [ -d 'venv' ] ; then
5+
export PREFIX="venv/bin/"
6+
fi
7+
8+
set -x
9+
10+
${PREFIX}pytest "$@"

tests/test_mkdocs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def test_mkdocs():
2+
pass

0 commit comments

Comments
 (0)