-
Notifications
You must be signed in to change notification settings - Fork 629
43 lines (37 loc) · 1.03 KB
/
validate.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
43
name: validate
on:
schedule:
- cron: '00 00 * * MON'
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9',]
architecture: ['x64']
steps:
- name: Checkout onnx/tutorials
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
- name: flake8 check
run: |
python -m pip install -q --upgrade pip
python -m pip install -q flake8
flake8
- name: Validate changed URLs from this PR
run: |
git fetch --all
python workflow_scripts/validate_changed_urls.py
- name: Weekly validate all URLs under onnx/tutorials
if: (github.event_name == 'schedule') # Only triggered by weekly event
run: |
python workflow_scripts/validate_all_urls.py