Skip to content

Commit 35428b7

Browse files
committed
ci: Reuse workflow for lint
1 parent e609116 commit 35428b7

File tree

1 file changed

+5
-20
lines changed

1 file changed

+5
-20
lines changed

.github/workflows/lint.yml

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,8 @@
11
name: Lint
22
on: [push, pull_request]
3-
env:
4-
BASEDIR: https://raw.githubusercontent.com/open-contracting/standard-maintenance-scripts/main
53
jobs:
6-
build:
7-
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
8-
runs-on: ubuntu-latest
9-
steps:
10-
- uses: actions/checkout@v4
11-
- uses: actions/setup-python@v5
12-
with:
13-
python-version: '3.10'
14-
cache: pip
15-
cache-dependency-path: pyproject.toml
16-
- shell: bash
17-
run: curl -s -S --retry 3 $BASEDIR/tests/install.sh | bash -
18-
- shell: bash
19-
run: curl -s -S --retry 3 $BASEDIR/tests/script.sh | bash -
20-
- run: pip install .[test]
21-
- run: pytest /tmp/test_requirements.py
22-
- run: pip install --upgrade check-manifest
23-
- run: check-manifest
4+
lint:
5+
uses: open-contracting/.github/.github/workflows/lint.yml@main
6+
with:
7+
python-version: '3.10'
8+
standard-maintenance-scripts-ignore: click

0 commit comments

Comments
 (0)