Add INJECTED flag for DI allowing for typing improvements #1542
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: CI | |
on: | |
push: | |
branches-ignore: | |
- "dependabot/**" | |
pull_request: | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- name: Run format checks | |
run: | | |
pip install nox | |
nox -s format_check | |
type-check: | |
name: Type-check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- name: Run pyright | |
run: | | |
pip install nox | |
nox -s typecheck | |
slotscheck: | |
name: Slotscheck | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- name: Run slotscheck | |
run: | | |
pip install nox | |
nox -s slotscheck | |
fragment-check: | |
name: Fragment check | |
runs-on: ubuntu-latest | |
if: github.event_name == 'pull_request' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Check changelog fragment exists | |
run: | | |
PR_NUMBER=${{ github.event.number }} | |
if [ -n "$(compgen -G "fragments/${PR_NUMBER}.*.md")" ]; then | |
echo "Fragment exists" | |
exit 0 | |
fi | |
echo "Fragment does not exist" | |
exit 1 |