Debian Codegraph @

.github/workflows/pr.yml

raw symbols SCIP
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 test
5
6 on:
7 pull_request:
8 branches: [ master ]
9
10 jobs:
11 build:
12
13 runs-on: ubuntu-latest
14 strategy:
15 matrix:
16 python-version: [3.6, 3.7, 3.8, 3.9, 2.7]
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 setup.py install
28 python -m pip install -r test-requirements.txt
29 - name: Lint with flake8
30 run: |
31 # stop the build if there are Python syntax errors or undefined names
32 # Code style checks disabled until the style of the project is set.
33 ./run_tests.sh lint
34 - name: Test with pytest
35 run: |
36 ./run_tests.sh test