Test Sources #1101
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: Test Sources | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, labeled, unlabeled] | |
branches-ignore: | |
- 'released' | |
schedule: | |
- cron: '0 22 * * *' | |
defaults: | |
run: | |
shell: bash | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test-sources: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-22.04] | |
python: ['3.10'] | |
include: | |
- os: ubuntu-22.04 | |
DEPENDENCIES_INSTALLATION: "sudo apt -y install cppcheck" | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Test Sources | |
run: | | |
${{ matrix.DEPENDENCIES_INSTALLATION }} | |
pip install -r tests/sources/requirements.txt | |
python3 -m unittest discover -s tests/sources/ |