Skip IAM policies that look like they've already been updated. (#169) #309
This file contains hidden or 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: Test awsdocs/aws-doc-sdk-examples-tools | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| pytest: | |
| name: lint, check, and test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.8" | |
| cache: "pip" | |
| - run: | | |
| python -m pip install -r requirements.txt | |
| python -m pip install -e . | |
| - run: python -m black --check --diff **/*.py | |
| - run: python -m mypy aws_doc_sdk_examples_tools | |
| # Run both checks and formatting | |
| if: success() || failure() | |
| - run: python -m pytest -vv | |
| if: success() || failure() |