File: testing-and-coverage.yml

package info (click to toggle)
python-pyluach 2.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 340 kB
  • sloc: python: 2,448; makefile: 16; sh: 6
file content (40 lines) | stat: -rw-r--r-- 965 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
name: pytest
on:
  push:
    branches:
      - master
      - dev
jobs:
  test:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
    steps:
    - uses: actions/checkout@v4
    - name: setup python
      uses: actions/setup-python@v5
      with:
        python-version: ${{matrix.python-version}}
    - name: install
      run: |
        python -m pip install --upgrade pip
        pip install pytest pytest-cov beautifulsoup4
        pip install -e ./
    - name: run-tests
      run: |
        pytest --cov=src/pyluach tests/
    - name: Coveralls Parallel
      uses: coverallsapp/github-action@v2
      with:
        flag-name: ${{ matrix.python-version }}
        parallel: true
  finish:
    needs: test
    if: ${{ always() }}
    runs-on: ubuntu-latest
    steps:
    - name: Coveralls Finished
      uses: coverallsapp/github-action@v2
      with:
        parallel-finished: true