-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (42 loc) · 1.21 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Test
on:
push:
paths:
- '**.py'
- ".github/workflows/*.yml"
pull_request:
types: [opened, synchronize, reopened]
paths:
- '**.py'
- ".github/workflows/*.yml"
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/[email protected]
with:
python-version: '3.7'
cache: pip
# Set this option if you want the action to check for the latest available version that satisfies the version spec.
# check-latest: # optional
- name: Install requirements
run: pip install -r requirements.txt
- name: Cache wabt
id: cache-wabt
uses: actions/cache@v3
with:
path: wabt-1.0.32
key: wabt
- name: Install wabt
if: steps.cache-wabt.outputs.cache-hit != 'true'
run: |
curl -JLO "https://github.com/WebAssembly/wabt/releases/download/1.0.32/wabt-1.0.32-ubuntu.tar.gz"
tar xzf wabt-1.0.32-ubuntu.tar.gz
- name: Run pytest
run: |
export PATH=$(pwd)/wabt-1.0.32/bin:$PATH
pytest test.py --tb=short --durations=0