Skip to content

validate

validate #184

Workflow file for this run

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