Debian Codegraph @

.github/workflows/test.yml

raw
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: CI
5
6 on:
7 push:
8 branches: [ master ]
9 pull_request:
10 branches: [ master ]
11
12 jobs:
13
14 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
15
16 release_test:
17
18 runs-on: ${{ matrix.os }}
19 strategy:
20 fail-fast: false
21 matrix:
22 os: [ ubuntu-latest ]
23 python-version: ["3.9"]
24
25 steps:
26
27 - name: Checkout
28 uses: actions/checkout@v2
29 with:
30 fetch-depth: 0
31 ref: ${{ github.event.pull_request.head.sha }}
32
33 - name: Set up Python ${{ matrix.python-version }}
34 uses: actions/setup-python@v2
35 with:
36 python-version: ${{ matrix.python-version }}
37
38 - name: Upgrade PIP
39 run: python -m pip install --upgrade pip
40
41 - name: Install application with ML
42 run: python -m pip install .
43
44 - name: CLI tool check
45 run: filetype --help
46
47 - name: Install test framework dependencies
48 run: python -m pip install tox
49
50 - name: Run tox pipeline
51 run: tox
52
53 - name: HTML coverage reports
54 if: always()
55 uses: actions/upload-artifact@v2
56 with:
57 name: coverage_${{ matrix.python-version }}
58 path: coverage
59