Skip to content

MWB-465: update name to assets #1646

MWB-465: update name to assets

MWB-465: update name to assets #1646

Workflow file for this run

name: Unit tests
on:
# workflow_dispatch:
push:
branches: [ feature/*, hotfix/*, release/* ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
ENVIRONMENT: staging
jobs:
run_tests_on_push:
name: Running tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade setuptools pip wheel
make install-dev
- name: Run unit tests
run: make test-unit
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: coverage.xml
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: true