File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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 :
7+ push :
8+ branches : [ master ]
9+ paths :
10+ - ' python/**'
11+ pull_request :
12+ branches : [ master ]
13+ paths :
14+ - ' python/**'
15+
16+ jobs :
17+ build :
18+
19+ runs-on : ubuntu-latest
20+ strategy :
21+ matrix :
22+ python-version : [3.6, 3.7, 3.8, 3.9]
23+
24+ steps :
25+ - uses : actions/checkout@v2
26+ - name : Set up Python ${{ matrix.python-version }}
27+ uses : actions/setup-python@v2
28+ with :
29+ python-version : ${{ matrix.python-version }}
30+ - name : Install dependencies
31+ run : |
32+ python -m pip install --upgrade pip
33+ pip install tox black
34+ - name : Reformat
35+ run : |
36+ cd python; black --check .
37+ - name : Test with tox
38+ run : |
39+ cd python; tox
You can’t perform that action at this time.
0 commit comments