Skip to content

Commit

Permalink
Restrict permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Sep 27, 2024
1 parent 132f95d commit 85ba0b8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: tests

on: [push, pull_request, workflow_dispatch]

permissions:
contents: read

env:
FORCE_COLOR: 1

Expand All @@ -13,24 +16,29 @@ jobs:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
os: [windows-latest, macos-latest, ubuntu-latest]

steps:
- uses: actions/checkout@v4
with:
# fetch all branches and tags
# ref actions/checkout#448
fetch-depth: 0

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
cache: pip
cache-dependency-path: pyproject.toml

- name: Install tox
run: |
python -m pip install tox
- name: Run tests
run: tox -e py

- name: Upload coverage
uses: codecov/codecov-action@v4
with:
Expand Down

0 comments on commit 85ba0b8

Please sign in to comment.