[metrics] Include mean of commits for month and year #47
Workflow file for this run
This file contains hidden or 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: Unit tests | |
on: | |
push: | |
branches: | |
- '**' | |
tags: | |
- '!**' | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
sbom_metrics: | |
strategy: | |
matrix: | |
python-version: [3.11, 3.12] | |
runs-on: ubuntu-latest | |
name: Python ${{ matrix.python-version }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install poetry | |
run: | | |
curl -sSL https://install.python-poetry.org | python3 - | |
echo "PATH=$HOME/.poetry/bin:$PATH" >> $GITHUB_ENV | |
- name: Install dependencies | |
run: | | |
poetry install --with dev -vvv | |
poetry run pip install -r requirements_dev.txt | |
- name: Lint with flake8 | |
run: | | |
poetry run flake8 | |
- name: Black check | |
run: | | |
poetry run black --check . | |
- name: Tests | |
run: | | |
cd tests && poetry run python run_tests.py unit |