Debian Codegraph @

.github/workflows/ci.yml

raw symbols SCIP
1 name: CI
2
3 on: [push, pull_request]
4
5 jobs:
6 test-linux:
7 strategy:
8 matrix:
9 python-version: [3.9, '3.10', '3.11', '3.12', '3.13']
10
11 runs-on: ubuntu-latest
12
13 env:
14 TEST_OPTS: "-rfsxEX -s --cov=flexparser --cov-config=.coveragerc"
15
16 steps:
17 - uses: actions/checkout@v2
18 with:
19 fetch-depth: 100
20
21 - name: Get tags
22 run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
23
24 - name: Set up Python ${{ matrix.python-version }}
25 uses: actions/setup-python@v2
26 with:
27 python-version: ${{ matrix.python-version }}
28
29 - name: Get pip cache dir
30 id: pip-cache
31 run: echo "::set-output name=dir::$(pip cache dir)"
32
33 - name: Setup caching
34 uses: actions/cache@v2
35 with:
36 path: ${{ steps.pip-cache.outputs.dir }}
37 key: pip-${{ matrix.python-version }}
38 restore-keys: |
39 pip-${{ matrix.python-version }}
40
41 - name: Install dependencies
42 run: |
43 pip install .[test]
44
45 - name: Run Tests
46 run: |
47 pytest $TEST_OPTS
48
49 - name: Coverage report
50 run: coverage report -m
51
52 - name: Coveralls Parallel
53 env:
54 COVERALLS_FLAG_NAME: ${{ matrix.test-number }}
55 COVERALLS_PARALLEL: true
56 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57 COVERALLS_SERVICE_NAME: github
58 run: |
59 pip install coveralls
60 coveralls
61
62 coveralls:
63 needs: test-linux
64 runs-on: ubuntu-latest
65 steps:
66 - uses: actions/setup-python@v2
67 with:
68 python-version: 3.x
69 - name: Coveralls Finished
70 env:
71 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72 COVERALLS_SERVICE_NAME: github
73 run: |
74 pip install coveralls
75 coveralls --finish