Skip to content

Commit 8ea3c63

Browse files
committed
chore: init GitHub actions
1 parent affbdef commit 8ea3c63

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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: workflow_dispatch
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
fail-fast: true
15+
matrix:
16+
python-version: ["3.6", "3.9"]
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
python -m pip install wheel setuptools
28+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
29+
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
30+
- name: Run Unit Tests
31+
run: |
32+
pytest test/unit/

0 commit comments

Comments
 (0)