File: pull-request-tests.yml

package info (click to toggle)
acme-tiny 1%3A5.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 216 kB
  • sloc: python: 755; makefile: 4
file content (62 lines) | stat: -rw-r--r-- 1,689 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
name: Pull Request Tests
on: [pull_request]
jobs:
  test:
    name: Run tests

    strategy:
      matrix:
        include:

          - test-name: ubuntu-22.04-python-3.9
            os: ubuntu-22.04
            python-version: "3.9"

          - test-name: ubuntu-22.04-python-3.10
            os: ubuntu-22.04
            python-version: "3.10"

          - test-name: ubuntu-22.04-python-3.11
            os: ubuntu-22.04
            python-version: "3.11"

          - test-name: ubuntu-24.04-python-3.12
            os: ubuntu-24.04
            python-version: "3.12"

          - test-name: ubuntu-24.04-python-3.13
            os: ubuntu-24.04
            python-version: "3.13"

    runs-on: ${{ matrix.os }}

    steps:

      - name: Checkout repo
        uses: actions/checkout@v4

      - name: Setup pebble
        run: |
            wget https://github.com/letsencrypt/pebble/releases/latest/download/pebble-linux-amd64.tar.gz
            tar -xvzf pebble-linux-amd64.tar.gz -C /tmp
            chmod 744 /tmp/pebble-linux-amd64/linux/amd64/pebble
            /tmp/pebble-linux-amd64/linux/amd64/pebble -h || true

      - name: Setup python
        uses: actions/setup-python@v5
        with:
          python-version: ${{ matrix.python-version }}

      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip
          pip install -U -r tests/requirements.txt

      - name: Run tests with coverage
        run: |
          export ACME_TINY_PEBBLE_BIN="/tmp/pebble-linux-amd64/linux/amd64/pebble"
          coverage run --source . --omit ./setup.py -m unittest tests

      - name: Print coverage report
        run: coverage report -m