Merge pull request #20 from NHFLO/actions #4
This file contains 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: Data validator | |
on: | |
push: | |
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 |