File: coverage.yml

package info (click to toggle)
hyphy 2.5.47%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 27,404 kB
  • sloc: cpp: 79,973; xml: 467; lisp: 341; python: 156; javascript: 117; sh: 106; makefile: 86; ansic: 86
file content (42 lines) | stat: -rwxr-xr-x 1,235 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Test Coverage
on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]
jobs:
  coverage:
    name: Coveralls Report
    runs-on: ubuntu-latest
    steps:
      - name: Install python
        uses: actions/setup-python@v1
        with:
          python-version: 3.7
      - name: Install dependencies
        run:
          python -m pip install --upgrade pip;
          python -m pip install --upgrade wheel;
          python -m pip install --upgrade cpp-coveralls;
      - name: Get HyPhy code
        uses: actions/checkout@v2
      - name: Install and activate miniconda
        uses: conda-incubator/setup-miniconda@v2
        with:
          activate-environment: 'hyphy-test-env'
          environment-file: '.coveralls.env.yml'
          condarc-file: '.coveralls.condarc'
      - name: Build HyPhy
        run:
          cmake .;
          make -j HYPHYDEBUG;
          ln -s HYPHYDEBUG hyphy;
          ln -s HYPHYDEBUG HYPHYMP;
      - name: Run unit tests
        run:
          PATH=.:$PATH ./run_unit_tests.sh || true;
      - name: Generate coverage information
        run:
          coveralls --gcov-options '\-lp';
        env:
          COVERALLS_REPO_TOKEN: ${{ secrets.coveralls_token }}