File: tests.yml

package info (click to toggle)
prospector 1.10.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,440 kB
  • sloc: python: 4,200; makefile: 181
file content (42 lines) | stat: -rw-r--r-- 1,343 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
name: tests
on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - master
jobs:
  tests:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
    steps:
      - uses: actions/checkout@v3
      - run: pipx install poetry
      - uses: actions/setup-python@v4
        with:
          python-version: ${{ matrix.python-version }}
          cache: "poetry"
      - run: poetry install -E with_everything
      # - run: poetry show --all
      # - run: poetry show --outdated
      # - run: poetry show --tree
      - name: Install test profile used in the tests
        run: poetry run pip install tests/prospector-profile-test/
      - run: poetry run pytest --benchmark-disable --cov --cov-report= tests/
      - name: Check that Prospector can run
        run: |
          echo "Checking prospector can run; don't care about messages found, only that it runs successfully"
          poetry run prospector --quiet --zero-exit
          echo "Prospector ran successfully."
      - name: Check packaging
        run: |
          echo "Building packages"
          rm -rf dist/
          poetry build
          echo "Validating packages"
          poetry run twine check dist/*
          echo "Packages build and valdiate successfully."