Skip to content

Commit

Permalink
CI: only run backend lint once, not in all test environments
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Apr 24, 2023
1 parent 1598680 commit 247ff21
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/backend.yml
Expand Up @@ -115,14 +115,6 @@ jobs:
if: ${{ matrix.python-version == '3.7' }}
run: |
pip install -r test/requirements-37.txt
- name: Lint
shell: bash
run: |
bash scripts/lint_backend.sh
- name: Typecheck
shell: bash
run: |
bash scripts/type_check_backend.sh
- name: Build frontend
shell: bash
run: |
Expand All @@ -137,4 +129,19 @@ jobs:
run: |
coverage run -m pytest -m "${{ matrix.test-type }}" --ignore=client
coverage xml
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: pip
cache-dependency-path: test/requirements.txt
- name: Install Test Dependencies
run: pip install -r test/requirements.txt
- name: Lint
run: bash scripts/lint_backend.sh
- name: Typecheck
run: bash scripts/type_check_backend.sh
2 changes: 1 addition & 1 deletion CHANGELOG.md
Expand Up @@ -25,7 +25,7 @@ No changes to highlight.

## Testing and Infrastructure Changes:

No changes to highlight.
- CI: Python backend lint is only run once, by [@akx](https://github.com/akx) in [PR XXXX](https://github.com/gradio-app/gradio/pull/XXXX)

## Breaking Changes:

Expand Down

0 comments on commit 247ff21

Please sign in to comment.