diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..8f8ef05 --- /dev/null +++ b/.github/workflows/test.yml @@ -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 diff --git a/test/test_render.py b/test/test_render.py index 1b82450..94953a1 100644 --- a/test/test_render.py +++ b/test/test_render.py @@ -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