Skip to content

Commit

Permalink
Add data validation workflow for testing forbidden file formats
Browse files Browse the repository at this point in the history
  • Loading branch information
bdestombe committed Nov 25, 2024
1 parent 05605d0 commit 9fa8b56
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 25 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/data-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
data-validation:
name: Test for forbidden file formats
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
strategy:
fail-fast: false
env:
HATCH_VERBOSE: 1
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Install hatch
run: uv tool install hatch
- name: Test for forbidden file formats
run: hatch run test:pytest tests/test_forbidden_file_formats.py -v
26 changes: 1 addition & 25 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,28 +32,4 @@ jobs:
- name: Lint Python files
run: hatch run lintformat:lint
- name: Lint repository.yaml and check mockup folder structure
run: hatch run test:pytest tests/test_repository_yaml.py tests/test_mockup_folder_structure.py -v

data-validation:
name: Test for forbidden file formats
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
strategy:
fail-fast: false
env:
HATCH_VERBOSE: 1
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Install hatch
run: uv tool install hatch
- name: Test for forbidden file formats
run: hatch run test:pytest tests/test_forbidden_file_formats.py -v

run: hatch run test:pytest tests/test_repository_yaml.py tests/test_mockup_folder_structure.py -v

0 comments on commit 9fa8b56

Please sign in to comment.