File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 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/
You can’t perform that action at this time.
0 commit comments