Skip to content

Add change supporting unit testing #122

Add change supporting unit testing

Add change supporting unit testing #122

Workflow file for this run

name: Validate
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Linter
run: |
cd azure
flake8 . --count --show-source --statistics
- name: Run tests
run: |
pytest --ignore=samples-v2
test-samples:
strategy:
matrix:
app_name: [blueprint, fan_in_fan_out, function_chaining]
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./samples-v2/${{ matrix.app_name }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r ../../requirements.txt
pip install ../.. --no-cache-dir --upgrade --no-deps --force-reinstall
- name: Run tests
run: |
python -m pytest