Fix #1100: Fix steps and add a 'jbi lint' command to make sure we don't fall into this anymore #915
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: Run CI checks | |
on: pull_request | |
jobs: | |
run_lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
id: setup-python | |
with: | |
python-version: "3.13" | |
- name: Install poetry | |
run: pipx install poetry | |
- uses: actions/cache@v4 | |
with: | |
path: .venv | |
key: poetry-${{ steps.setup-python.outputs.python-version}}-${{ hashFiles('poetry.lock') }} | |
- name: Install dependencies | |
run: make install | |
- run: bin/lint.sh | |
run_test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
id: setup-python | |
with: | |
python-version: "3.13" | |
- name: Install pandoc | |
run: sudo apt-get install -y pandoc | |
- name: Install poetry | |
run: pipx install poetry | |
- uses: actions/cache@v4 | |
with: | |
path: .venv | |
key: poetry-${{ steps.setup-python.outputs.python-version}}-${{ hashFiles('poetry.lock') }} | |
- name: Install dependencies | |
run: make install | |
- name: Run tests | |
run: bin/test.sh | |
- name: Run retry | |
env: | |
JBI_API_KEY: key # pragma: allowlist secret | |
JIRA_API_KEY: key # pragma: allowlist secret | |
JIRA_USERNAME: foo@bar | |
BUGZILLA_API_KEY: key # pragma: allowlist secret | |
DL_QUEUE_CONSTANT_RETRY: false | |
DL_QUEUE_DSN: "file:///tmp/dlqueue" | |
run: .venv/bin/python -m jbi.retry | |
review-dependabot-pr: | |
permissions: | |
contents: write | |
pull-requests: write | |
runs-on: ubuntu-latest | |
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }} | |
steps: | |
- name: Enable Dependabot automation | |
uses: mozilla/syseng-pod/actions/dependabot-automerge@main |