Skip to content

Narrow down permissions #98

Narrow down permissions

Narrow down permissions #98

Workflow file for this run

# This workflow will run tests for python versions specified on a PR creation and a push to master
name: Tests
on: [ push, pull_request, workflow_dispatch ]
permissions:
contents: read
pull-requests: write
jobs:
build:
name: Tests
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11' ]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install coverage
pip install coveralls
- name: Run tests
run: |
make unittest
- name: Coverage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
coveralls --service=github