File: test.yml

package info (click to toggle)
pplpy 0.8.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 532 kB
  • sloc: python: 306; makefile: 39; cpp: 21; sh: 2
file content (45 lines) | stat: -rw-r--r-- 1,413 bytes parent folder | download
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
name: Test
on:
  push: { branches: [ "master" ] }
  pull_request: { branches: [ "master" ] }

concurrency:
  group: test-${{ github.ref }}
  cancel-in-progress: true

jobs:
  test:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: ["3.8", "3.9", "3.10", "3.11"]
        cython: ["cython", "cython<3.0.0"]
    steps:
      - uses: actions/checkout@v2
        with: { submodules: recursive }
      - uses: conda-incubator/setup-miniconda@v2
        with: { miniforge-variant: "Mambaforge", miniforge-version: "latest", python-version: "${{matrix.python-version}}" }
      - name: Install pplpy dependencies
        shell: bash -l {0}
        run: |
          mamba install --quiet setuptools gmpy2 cysignals ppl "${{matrix.cython}}"
          conda list
      - name: Install pplpy
        shell: bash -l {0}
        run: |
          pip install --verbose --no-index --no-build-isolation .
      - name: Install test dependencies
        run: |
          mamba env update --quiet -n test -f environment.test.yml
          conda list
      - name: Linter
        shell: bash -l {0}
        run: |
          cython-lint --ignore=E265,E266,E501,E741 --exclude='ppl_decl.pxd' ppl/
      - name: Run tests
        shell: bash -l {0}
        run: |
          python setup.py test
      - name: Show logs
        run: grep "" /dev/null `find -name '*.log'` || true
        if: ${{ always() }}