File: coverage.yml

package info (click to toggle)
nipy 0.6.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,392 kB
  • sloc: python: 39,094; ansic: 30,931; makefile: 228; sh: 93
file content (48 lines) | stat: -rw-r--r-- 1,208 bytes parent folder | download | duplicates (2)
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
43
44
45
46
47
48
name: coverage

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

concurrency:
  group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
  cancel-in-progress: true

jobs:
  report:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: ["3"]
    steps:
      - uses: actions/checkout@v4
      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v5
        with:
          python-version: ${{ matrix.python-version }}
          allow-prereleases: true
      - name: Install
        run: |
          pip install -r dev-requirements.txt
          pip install .
      - name: Show environment
        run: env
      - name: Library tests
        run: |
          mkdir tmp
          cd tmp
          pytest --doctest-plus --ignore-glob="__config__.py" \
            --cov=nipy  --cov-report xml  --cov-config=../.coveragerc \
            --pyargs nipy
      - name: See what's where
        run: |
          pwd
          ls -lR ..
      - name: Upload to codecov
        uses: codecov/codecov-action@v4
        with:
          files: tmp/coverage.xml
        env:
          CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}