-
Notifications
You must be signed in to change notification settings - Fork 173
45 lines (45 loc) · 1.43 KB
/
tests.yml
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: tests
on:
push:
branches:
- master
- mechanical_fix_test
pull_request:
branches:
- master
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
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: Run Prospector checks
run: poetry run prospector --output-format=pylint
- 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."