Skip to content

Custom weights for training examples #1257

Custom weights for training examples

Custom weights for training examples #1257

Workflow file for this run

---
name: Check code style
on:
pull_request:
types:
- opened
- reopened
- synchronize
jobs:
changes:
name: Detect changes
runs-on: ubuntu-latest
outputs:
cpp: ${{ steps.filter.outputs.cpp }}
python: ${{ steps.filter.outputs.python }}
md: ${{ steps.filter.outputs.md }}
yaml: ${{ steps.filter.outputs.yaml }}
toml: ${{ steps.filter.outputs.toml }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version-file: .version-python
- name: Detect changes
uses: dorny/paths-filter@v3
id: filter
with:
filters: |
build_files: &build_files
- '.github/workflows/test_format.yml'
- 'build'
- 'build.bat'
- 'build_system/main.py'
- 'build_system/core/**'
- 'build_system/util/**'
- 'build_system/targets/*.py'
- 'build_system/targets/code_style/*'
cpp:
- *build_files
- 'build_system/targets/code_style/cpp/*'
- '.cpplint.cfg'
- '**/*.hpp'
- '**/*.cpp'
python:
- *build_files
- 'build_system/targets/code_style/python/*'
- '**/*.py'
md:
- *build_files
- 'build_system/targets/code_style/markdown/*'
- '**/*.md'
yaml:
- *build_files
- 'build_system/targets/code_style/yaml/*'
- '**/*.y*ml'
toml:
- *build_files
- 'build_system/targets/code_style/toml/*'
- '**/*.toml'
test_format_cpp:
needs: changes
if: ${{ needs.changes.outputs.cpp == 'true' }}
name: Check C++ source files
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version-file: .version-python
- name: Check C++ source files
run: ./build test_format_cpp
test_format_python:
needs: changes
if: ${{ needs.changes.outputs.python == 'true' }}
name: Check Python source files
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version-file: .version-python
- name: Check Python source files
run: ./build test_format_python
test_format_md:
needs: changes
if: ${{ needs.changes.outputs.md == 'true' }}
name: Check Markdown files
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version-file: .version-python
- name: Check Markdown files
run: ./build test_format_md
test_format_yaml:
needs: changes
if: ${{ needs.changes.outputs.yaml == 'true' }}
name: Check YAML files
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version-file: .version-python
- name: Check YAML files
run: ./build test_format_yaml
test_format_toml:
needs: changes
if: ${{ needs.changes.outputs.toml == 'true' }}
name: Check TOML files
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version-file: .version-python
- name: Check TOML files
run: ./build test_format_toml