remove printouts #369
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: Commit CI/CD # workflow name | |
on: # trigger | |
push: | |
branches: [dev, master] | |
pull_request: | |
types: [opened, reopened, edited] | |
# parallel jobs to perform | |
jobs: | |
unit_tests_linux: | |
name: Run unit tests on Linux | |
runs-on: ubuntu-latest # runner | |
if: ${{ (!contains(github.event.head_commit.message, '#notest') && !contains(github.event.head_commit.message, '#nolinuxtest')) || github.ref == 'refs/heads/master' }} | |
steps: # tasks | |
- name: Set Github Workspace # access Github Workspace | |
uses: actions/checkout@v2 | |
- name: Set up Python 3.10 # set architecture and Python3 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.10" | |
architecture: "x64" # architecture | |
- name: Install test dependencies | |
uses: ./.github/common/install_test_dependencies | |
- name: Build from source | |
uses: ./.github/common/build_from_source | |
- name: Run unit tests # run unittests | |
uses: ./.github/common/unit_tests | |
unit_tests_windows: | |
name: Run unit tests on Windows | |
runs-on: windows-latest # runner | |
if: ${{ !contains(github.event.head_commit.message, '#notest') || github.ref == 'refs/heads/master' }} | |
steps: # tasks | |
- name: Set Github Workspace # access Github Workspace | |
uses: actions/checkout@v2 | |
- name: Set up Python 3.10 # set architecture and Python3 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
architecture: "x64" # architecture | |
- name: Install test dependencies on windows | |
uses: ./.github/common/install_test_dependencies_windows | |
- name: Build from source | |
uses: ./.github/common/build_from_source | |
- name: Run unit tests # run unittests | |
uses: ./.github/common/unit_tests | |
code_analysis: | |
name: Run code analysis | |
runs-on: ubuntu-latest # runner | |
steps: # tasks | |
- name: Set Github Workspace # access Github Workspace | |
uses: actions/checkout@v2 | |
- name: Set up Python 3.10 # set architecture and Python3 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
architecture: "x64" # architecture | |
- name: Install dependencies | |
uses: ./.github/common/install_dependencies | |
- name: Run code analysis | |
uses: ./.github/common/code_quality | |