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

Commit 817e588

Browse files
authored
Create python-package.yml
1 parent 8d4be2e commit 817e588

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: Python package
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
branches: [ master ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
python-version: ['3.7', '3.8']
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: actions/setup-node@v2.1.2
23+
- name: Setup npm and build runestone.js
24+
run: |
25+
npm install
26+
npm run build
27+
- name: Set up Python ${{ matrix.python-version }}
28+
uses: actions/setup-python@v2
29+
with:
30+
python-version: ${{ matrix.python-version }}
31+
- name: Install dependencies
32+
run: |
33+
python -m pip install --upgrade pip
34+
python -m pip install flake8 pytest
35+
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
36+
- name: Test with pytest
37+
run: |
38+
pytest

0 commit comments

Comments
 (0)