Merge branch 'feature_ml_model' of https://github.com/tuda-parallel/F… #220
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: CI | |
| on: | |
| push: | |
| branches: | |
| - '*' # Trigger on push to any branch | |
| # - 'development' # Trigger on push to any branch | |
| # - 'main' # Trigger on push to any branch | |
| # - '!development' # Exclude the branch | |
| pull_request: | |
| branches: | |
| - 'main' # Run tests on pull requests targeting the main branch | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout latest FTIO code | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: Install FTIO and dependencies | |
| run: | | |
| python -m venv .venv | |
| source .venv/bin/activate | |
| pip install --upgrade pip | |
| pip install .[external-libs] || \ | |
| { echo "::error::External dependencies installation failed, falling back to standard install."; \ | |
| pip install . --no-cache-dir; } | |
| - name: Test FTIO | |
| run: | | |
| source .venv/bin/activate # Just activate the existing .venv | |
| cd test | |
| python3 -m pytest | |
| rm -rf io_results __pycache__ *.json* |