fix: Partially revert 5e9cc0c, which globally reconfigured Python war… #23
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@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
cache: pip | |
cache-dependency-path: setup.py | |
- run: pip install --upgrade check-manifest flake8 isort setuptools | |
- run: check-manifest | |
- run: flake8 . | |
- run: isort . --check-only |