-
Notifications
You must be signed in to change notification settings - Fork 258
42 lines (34 loc) · 1.08 KB
/
pull_request.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Check PR
on:
pull_request:
branches:
- gh-pages
jobs:
check:
name: Check PR
runs-on: [ubuntu-20.04]
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Python dependencies
run: |
python -m pip install -U pip wheel
python -m pip install -r requirements.txt
- name: Basic check
run: find sources -name \*.geojson | xargs python scripts/check.py
- name: Get file changes
id: get_file_changes
uses: trilom/[email protected]
with:
output: '" "'
- name: Echo file changes
run: |
echo "Changed files: ${{ steps.get_file_changes.outputs.files }}"
- name: Strict check
run: |
python scripts/strict_check.py "${{ steps.get_file_changes.outputs.files }}"