Skip to content

Update Workflow permissions #11

Update Workflow permissions

Update Workflow permissions #11

Workflow file for this run

name: CI Pipeline
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
permissions:
contents: write
checks: write
pull-requests: write
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10']
steps:
- name: Check out the repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install project with dev dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev,tests]
- name: Run Black (auto-reformat)
run: black .
- name: Run isort (auto-reformat)
run: isort .
- name: Run pytest and generate coverage report
run: pytest --cov-report=term-missing:skip-covered --cov=codes test/ | tee pytest-coverage.txt
- name: Pytest coverage comment
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-coverage-path: ./pytest-coverage.txt