Skip to content

Commit

Permalink
ci: replace flake8 with ruff job
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfikl authored and inducer committed Jul 18, 2024
1 parent 68e4c17 commit 4d1976d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,16 @@ on:
- cron: '17 3 * * 0'

jobs:
flake8:
name: Flake8
ruff:
name: Ruff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
-
uses: actions/setup-python@v5
with:
# matches compat target in setup.py
python-version: '3.8'
- uses: actions/setup-python@v5
- name: "Main Script"
run: |
curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/prepare-and-run-flake8.sh
. ./prepare-and-run-flake8.sh "$(basename $GITHUB_REPOSITORY)" ./test
pip install ruff
ruff check
pytest:
name: Pytest on Py${{ matrix.python-version }}
Expand Down
10 changes: 5 additions & 5 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Flake8:
script:
- curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/prepare-and-run-flake8.sh
- ". ./prepare-and-run-flake8.sh codepy test"
Ruff:
script: |
pipx install ruff
ruff check
tags:
- python3
- docker-runner
except:
- tags

Expand Down

0 comments on commit 4d1976d

Please sign in to comment.