diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6a14e5c..8c43e98 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,20 +8,18 @@ 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' + submodules: true + - uses: actions/setup-python@v5 - name: "Main Script" run: | - curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/main/prepare-and-run-flake8.sh - . ./prepare-and-run-flake8.sh "$(basename $GITHUB_REPOSITORY)" test examples + pip install ruff + ruff check pytest: name: Pytest on Py${{ matrix.python-version }} diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cb9e164..045b1a8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,9 +1,11 @@ -Flake8: - script: - - curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/main/prepare-and-run-flake8.sh - - . ./prepare-and-run-flake8.sh "$CI_PROJECT_NAME" test examples +Ruff: + script: | + pipx install ruff + ruff check tags: - - python3 + - docker-runner + except: + - tags Python 3: script: