Merge pull request #124 from meaningfy-ws/feature/TDA-284 #505
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: Tests | |
on: | |
push: | |
branches: [ feature/* , main, hotfix/*, release/* ] | |
# pull_request: | |
# branches: [ main, release/* ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: pyTest | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
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@v4 | |
with: | |
python-version: 3.10.6 | |
- name: Install dependencies | |
run: | | |
sudo apt-get install -y libssl-dev libcurl4-openssl-dev | |
python -m pip install --upgrade setuptools pip wheel tox~=4.11.3 | |
- name: Make envfile | |
uses: SpicyPizza/create-envfile@v1 | |
with: | |
envkey_VAULT_TOKEN: ${{ secrets.VAULT_TOKEN }} | |
envkey_VAULT_ADDR: ${{ secrets.VAULT_ADDR }} | |
- name: Run unit tests | |
run: make test | |
# - 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 |