Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Run tests

on: [push]

jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10" ]
name: Test on Python ${{ matrix.python-version }}

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install npm
run: sudo apt-get install -y npm
- name: Install dependency
run: pip install pytest
- name: Install package
run: pip install .[test]
- name: Test
run: pytest
2 changes: 1 addition & 1 deletion test/test_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def wavedromdir(tmpdir_factory):
else:
wavedromdir = tmpdir_factory.mktemp("wavedrom")
subprocess.check_call("git clone https://github.com/wavedrom/wavedrom.git {}".format(wavedromdir), shell=True)
subprocess.check_call("git reset --hard 1d4d25181d6660b5d069defcf04583158b51aa5c~1", cwd=str(wavedromdir), shell=True)
subprocess.check_call("git reset --hard 29e6f1af89ef4921093c94d7da8df4a8d5b4b7cd", cwd=str(wavedromdir), shell=True)
subprocess.check_call("npm install", cwd=str(wavedromdir), shell=True)
return wavedromdir

Expand Down