-
Notifications
You must be signed in to change notification settings - Fork 3
25 lines (25 loc) · 989 Bytes
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: Lint
on: [push, pull_request]
env:
BASEDIR: https://raw.githubusercontent.com/open-contracting/standard-maintenance-scripts/main
OCDS_NOINDENT: 1 # fields.json is a cached upstream file.
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@v4
with:
python-version: '3.10'
cache: pip
cache-dependency-path: '**/requirements*.txt'
- 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 -r requirements_dev.txt
- env:
# ocdskit is run as a command. openpyxl is an optional dependency of Pandas.
STANDARD_MAINTENANCE_SCRIPTS_IGNORE: ocdskit,openpyxl
run: pytest /tmp/test_requirements.py