Skip to content

feat(): Github Action in Docker to send a Slack DM to a git user in the org #3

feat(): Github Action in Docker to send a Slack DM to a git user in the org

feat(): Github Action in Docker to send a Slack DM to a git user in the org #3

Workflow file for this run

name: Lint/Test
on:
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
env:
PYTHON_VERSION: "3.12"
permissions:
pull-requests: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "${{ env.PYTHON_VERSION }}"
- name: Run image
uses: abatilo/actions-poetry@7b6d33e44b4f08d7021a1dee3c044e9c253d6439
- name: Format
uses: psf/black@3702ba224ecffbcec30af640c149f231d90aebdb # v24.4.2
- name: Install dependencies
run: |
poetry install
- name: Unit Tests
run: |
set -o pipefail
poetry run pytest --junitxml=pytest.xml --cov=. tests | tee pytest-coverage.txt
- name: Comment coverage
uses: MishaKav/pytest-coverage-comment@fa1c641d7e3fa1d98ed95d5f658ccd638b774628 #v1.1.52
with:
pytest-coverage-path: ./pytest-coverage.txt
junitxml-path: ./pytest.xml