Skip to content
This repository was archived by the owner on Jun 22, 2025. It is now read-only.

Commit b9eaf62

Browse files
Setup testing framework
1 parent f078fcd commit b9eaf62

6 files changed

Lines changed: 48 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Test Eel
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
runs-on: ${{ matrix.os }}
11+
12+
strategy:
13+
matrix:
14+
os: [ubuntu-20.04, windows-latest, macos-latest]
15+
python-version: [3.6, 3.7, 3.8]
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v2
20+
- name: Setup python
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
- name: Setup test execution environment.
25+
run: pip3 install -r requirements-meta.txt
26+
- name: Run tox tests
27+
run: tox

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ Eel.egg-info
77
*.pyc
88
*.swp
99
venv/
10+
.tox

.python-version

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
3.6.10
2+
3.7.7
3+
3.8.3

requirements-meta.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
tox>=3.15.2
2+
tox-pyenv==1.1.0
3+
tox-gh-actions==1.3.0
4+
virtualenv>=16.7.10

requirements-test.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pytest==5.4.3

tox.ini

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[tox]
2+
envlist = py36,py37,py38
3+
4+
[gh-actions]
5+
python =
6+
3.6: py36
7+
3.7: py37
8+
3.8: py38
9+
10+
[testenv]
11+
deps = -r requirements-test.txt
12+
commands = pytest {posargs}

0 commit comments

Comments
 (0)