AzureML pipeline #855
Workflow file for this run
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: build_validation | |
on: | |
workflow_call: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
- development | |
push: | |
branches: | |
- main | |
- development | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/development' && github.ref != 'refs/heads/main' }} | |
jobs: | |
validate-code: | |
name: job for validating code and structure | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Actions | |
uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Load all build validation related dependencies | |
shell: bash | |
run: | | |
set -e # fail on error | |
python -m pip install --upgrade pip | |
python -m pip install -e . -r requirements.txt -r dev-requirements.txt | |
- name: Run flake | |
shell: bash | |
run: | | |
flake8 --extend-ignore=E501 | |
- name: Execute Unit Tests | |
shell: bash | |
run: | | |
pytest . --cov=. --cov-report=html --cov-config=.coveragerc | |
- name: Publish Unit Test Results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: unit-test-results | |
path: "htmlcov/**" |