Skip to content

Commit 15feb3a

Browse files
authored
Update Tests.yml
1 parent 9499664 commit 15feb3a

1 file changed

Lines changed: 6 additions & 20 deletions

File tree

.github/workflows/Tests.yml

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,13 @@ jobs:
88
build:
99

1010
runs-on: ubuntu-latest
11-
strategy:
12-
matrix:
13-
python-version: [3.6, 3.7]
1411

1512
steps:
1613
- uses: actions/checkout@v2
17-
- name: Set up Python ${{ matrix.python-version }}
18-
uses: actions/setup-python@v2
14+
- name: Use Node.js
15+
uses: actions/setup-node@v1
1916
with:
20-
python-version: ${{ matrix.python-version }}
21-
- name: Install dependencies
22-
run: |
23-
python -m pip install --upgrade pip
24-
pip install flake8 pytest
25-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
26-
- name: Lint with flake8
27-
run: |
28-
# stop the build if there are Python syntax errors or undefined names
29-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
30-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
31-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
32-
- name: Test with pytest
33-
run: |
34-
pytest
17+
node-version: '12.x'
18+
- run: npm install
19+
- run: npm run build --if-present
20+
- run: npm test

0 commit comments

Comments
 (0)