Merge Develop into Main #3
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
| # .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 |