Fix Ruff on error #431
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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=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." |