docs: Add comments defending the use of warning __init__ for backward… #321
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: Lint | |
on: [push, pull_request] | |
env: | |
BASEDIR: https://raw.githubusercontent.com/open-contracting/standard-maintenance-scripts/main | |
jobs: | |
build: | |
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
cache: pip | |
cache-dependency-path: setup.cfg | |
- shell: bash | |
run: curl -s -S --retry 3 $BASEDIR/tests/install.sh | bash - | |
- shell: bash | |
run: curl -s -S --retry 3 $BASEDIR/tests/script.sh | bash - | |
- run: pip install .[cli,test] | |
- env: | |
STANDARD_MAINTENANCE_SCRIPTS_EXTRAS: cli | |
# MyST-Parser is used as a Sphinx extension. | |
STANDARD_MAINTENANCE_SCRIPTS_IGNORE: MyST-Parser | |
run: pytest /tmp/test_requirements.py | |
- run: pip install --upgrade check-manifest | |
- run: check-manifest |