Skip to content

Add least-privilege permissions to CI workflow #56

Add least-privilege permissions to CI workflow

Add least-privilege permissions to CI workflow #56

Workflow file for this run

name: Test
on:
push:
branches:
- main
paths-ignore:
- "*.md"
pull_request:
paths-ignore:
- "*.md"
workflow_dispatch:
permissions:
contents: read
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: "3.10"
cache: "pip" # caching pip dependencies
- name: Install
run: |
python -m pip install -U pip
pip install -e .
pip install pytest
- name: Run tests
shell: bash
run: |
python -m pytest tests