From d2b0c8ed3447ac6b23c8fc3b13d82949d0755084 Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Tue, 26 Nov 2024 18:22:08 -0500 Subject: [PATCH] ci: Reuse workflow for lint --- .github/workflows/lint.yml | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1ccc149..be8baef 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,23 +1,7 @@ name: Lint on: [push, pull_request] -env: - BASEDIR: https://raw.githubusercontent.com/open-contracting/standard-maintenance-scripts/main jobs: - build: - if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: '3.10' - cache: pip - cache-dependency-path: pyproject.toml - - shell: bash - run: curl -s -S --retry 3 $BASEDIR/tests/install.sh | bash - - - shell: bash - run: curl -s -S --retry 3 $BASEDIR/tests/script.sh | bash - - - run: pip install .[test] - - run: pytest /tmp/test_requirements.py - - run: pip install --upgrade check-manifest - - run: check-manifest + lint: + uses: open-contracting/.github/.github/workflows/lint.yml@main + with: + python-version: '3.10'