Skip to content

Remove dependency to setoptconf #410

Remove dependency to setoptconf

Remove dependency to setoptconf #410

Workflow file for this run

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."