Skip to content

Merge Develop into Main #3

Merge Develop into Main

Merge Develop into Main #3

Workflow file for this run

# .github/workflows/ci.yml
name: CI
on:
push:
branches: [feature/initial-design]
pull_request:
branches: [main]
jobs:
ci:
name: "pyCosign CI Pipeline | (Python ${{ matrix.python-version }})"
strategy:
matrix:
python-version: ["3.10"]
poetry-version: ["2.1.3"]
os: [ubuntu-22.04]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
uses: abatilo/actions-poetry@v4
- name: Setup a local virtual environment (if no poetry.toml file)
run: |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- uses: actions/cache@v3
name: Define a cache for the virtual environment based on the dependencies lock file
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}
- name: Install the project dependencies
run: poetry install
- name: Run Black in check mode
run: poetry run black --check --verbose pycosign
- name: Run Isort in check mode
run: poetry run isort --verbose pycosign