Test render+commit based on label #160
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Pull request checks | ||
| on: | ||
| workflow_dispatch: | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| - release/* | ||
| jobs: | ||
| check-unique-standard-names: | ||
| name: Check for duplicates in standard names | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| - name: Setup Python | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: "3.x" | ||
| - name: Install dependencies | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get -y install libxml2-utils | ||
| - name: Check for duplicate standard names | ||
| run: | | ||
| tools/check_xml_unique.py standard_names.xml | ||
| check-name-rules: | ||
| name: Check standard names against rules | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| - name: Setup Python | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: "3.x" | ||
| - name: Install dependencies | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get -y install libxml2-utils | ||
| - name: Checks standard names against character rules | ||
| run: | | ||
| python3 tools/check_name_rules.py -s standard_names.xml | ||
| test-rendering: | ||
| name: Test rendering xml file to markdown and yaml | ||
| needs: [check-unique-standard-names, check-name-rules] | ||
| uses: ./.github/workflows/render.yaml | ||
|
Check failure on line 57 in .github/workflows/pull_request_ci.yml
|
||
| with: | ||
| commit_to_branch: false | ||
| #runs-on: ubuntu-latest | ||
| #steps: | ||
| # - name: Checkout repository | ||
| # uses: actions/checkout@v4 | ||
| # | ||
| # - name: Setup Python | ||
| # uses: actions/setup-python@v4 | ||
| # with: | ||
| # python-version: "3.x" | ||
| # | ||
| # - name: Install dependencies | ||
| # run: | | ||
| # sudo apt-get update | ||
| # sudo apt-get -y install libxml2-utils | ||
| # python -m pip install --upgrade pip | ||
| # python -m pip install PyYaml | ||
| # | ||
| # - name: Test rendering xml file to markdown | ||
| # run: | | ||
| # tools/write_standard_name_table.py --output-format md standard_names.xml | ||
| # echo "The following changes will be committed when this pull request is merged (git diff Metadata-standard-names.md; " | ||
| # echo "assuming that 'Metadata-standard-names.md' wasn't updated and matches the version in the authoritative branch):" | ||
| # git diff Metadata-standard-names.md | ||
| # | ||
| # - name: Test rendering xml file to yaml | ||
| # run: | | ||
| # tools/write_standard_name_table.py --output-format yaml standard_names.xml | ||
| # echo "The following changes will be committed when this pull request is merged (git diff Metadata-standard-names.yaml; " | ||
| # echo "assuming that 'Metadata-standard-names.yaml' wasn't updated and matches the version in the authoritative branch):" | ||
| # git diff Metadata-standard-names.yaml | ||