Add CI/CD for unit tests #24
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: Code Quality | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
# Only run tests if we modify the following files | |
paths: | |
- "src/**/*.py" | |
pull_request: | |
branches: [ main ] | |
paths: | |
- "src/**/*.py" | |
jobs: | |
cloc: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Count Lines of Code (cloc) | |
uses: djdefi/cloc-action@6 | |
with: | |
options: --exclude-dir=docs,tests,examples --exclude-lang=YAML |