Protect PEM key storage #49
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: Lint | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| - develop | |
| pull_request: | |
| branches: | |
| - main | |
| - master | |
| - develop | |
| jobs: | |
| lint: | |
| name: Lint and Format Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Cache pip dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/pip | |
| key: pip-${{ runner.os }}-lint-${{ hashFiles('requirements.txt', 'pyproject.toml') }} | |
| restore-keys: | | |
| pip-${{ runner.os }}-lint- | |
| - name: Upgrade pip | |
| run: | | |
| python -m pip install --upgrade pip setuptools wheel | |
| - name: Install lint dependencies | |
| run: | | |
| pip install -r requirements.txt | |
| pip install -e . | |
| pip install black ruff | |
| - name: Check formatting with Black | |
| run: | | |
| black --check src tests examples benchmarks | |
| - name: Run Ruff | |
| run: | | |
| ruff check src tests examples benchmarks |