File: ci.yml

package info (click to toggle)
python-sharkiq 1.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 184 kB
  • sloc: python: 1,059; makefile: 2
file content (65 lines) | stat: -rw-r--r-- 1,857 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
name: Continuous Integration

on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - main

jobs:
  test:
    name: Code Coverage (Python ${{ matrix.python-version }} on ${{ matrix.os }})
    runs-on: ${{ matrix.os }}-latest
    strategy:
      matrix:
        os: [ubuntu]
        python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
    steps:
      - name: Checking out code from GitHub
        uses: actions/checkout@v5.0.0
      - name: Set up Python ${{ matrix.python }}
        uses: actions/setup-python@v6.0.0
        with:
          python-version: ${{ matrix.python-version }}
      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip
          pip install -e ".[test]"
          pip list
      - name: Pytest with coverage reporting
        run: pytest --cov=sharkiq --cov-report=xml
      - name: Upload coverage to Codecov
        if: matrix.python-version == 3.13 && matrix.os == 'ubuntu'
        uses: codecov/codecov-action@v5.5.1
        with:
          token: ${{ secrets.CODECOV_TOKEN }}
          files: ./coverage.xml
          flags: unittests
          name: codecov-umbrella
  docs:
    name: Generate and Upload Documentation
    runs-on: ubuntu-latest
    needs: [test]
    steps:
    - name: Checking out code from GitHub
      uses: actions/checkout@v5.0.0
    - name: Set up Python 3.13
      uses: actions/setup-python@v6.0.0
      with:
        python-version: 3.13
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip pdoc3
        pip install -e .
        pip list
    - name: Generate documentation
      run: pdoc --html sharkiq
    - name: Deploy Documentation
      if: github.event_name == 'push'
      uses: JamesIves/github-pages-deploy-action@v4.7.3
      with:
        branch: docs
        folder: html/sharkiq