FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

CI: add least-privilege permissions to GitHub Actions workflows · GetStream/stream-python@c5df8e1 · GitHub

Repository navigation

CI: add least-privilege permissions to GitHub Actions workflows #105

CI: add least-privilege permissions to GitHub Actions workflows

CI: add least-privilege permissions to GitHub Actions workflows #105

Workflow file for this run

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
name: build
on:
push:
branches:
- 'main'
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
permissions:
contents: read
pull-requests: read
jobs:
build:
name: 🧪 Test & lint
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
python: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # gives the commit linter access to previous commits
- uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}
- name: Install deps with ${{ matrix.python }}
run: pip install -q ".[test, ci]"
- name: Lint with ${{ matrix.python }}
if: ${{ matrix.python == '3.8' }}
run: make lint
- name: Install, test and code coverage with ${{ matrix.python }}
env:
STREAM_KEY: ${{ secrets.STREAM_KEY }}
STREAM_SECRET: ${{ secrets.STREAM_SECRET }}
PYTHONPATH: ${{ github.workspace }}
run: make test

Back | FazBrowse Home | New Git URL