Download .github/workflows/validate.yml from PolytechCyInstitute/cyber-range: direct link, hf CLI and curl.
- Browser
- Download file 698 Bytes
-
https://huggingface.co/PolytechCyInstitute/cyber-range/resolve/main/.github/workflows/validate.yml
- Command line
-
hf download hf://PolytechCyInstitute/cyber-range/.github/workflows/validate.yml
-
curl -L -o validate.yml https://huggingface.co/PolytechCyInstitute/cyber-range/resolve/main/.github/workflows/validate.yml
698 Bytes
| name: validate | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| static-and-unit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| - name: Install validation dependency | |
| run: python -m pip install -r requirements-dev.txt | |
| - name: Run unit tests | |
| run: python -m unittest discover -s tests -v | |
| - name: Run static policy validation | |
| run: python validate.py | |
| - name: Compile Python sources | |
| run: python -m compileall -q lab.py validate.py soc_copilot tests tools | |