-
-
Notifications
You must be signed in to change notification settings - Fork 2
59 lines (53 loc) · 1.67 KB
/
pyre.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow integrates Pyre with GitHub's
# Code Scanning feature.
#
# Pyre is a performant type checker for Python compliant with
# PEP 484. Pyre can analyze codebases with millions of lines
# of code incrementally – providing instantaneous feedback
# to developers as they write code.
#
# See https://pyre-check.org
name: Pyre
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
pyre:
permissions:
actions: read
contents: read
security-events: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: sudo apt-get update ; sudo apt install espeak ffmpeg libespeak1 portaudio19-dev
# - run: pip install --upgrade pip ; pip install -r requirements.txt
# - continue-on-error: true # facebook/pyre-action upload always fails!!
- name: Run Pyre
uses: facebook/pyre-action@v0.0.2
with:
# To customize these inputs:
# See https://github.com/facebook/pyre-action#inputs
repo-directory: '.'
requirements-path: 'requirements.txt'
# - name: Upload SARIF Results
# if: always()
# uses: github/codeql-action/upload-sarif@v2
# with:
# sarif_file: sarif.json
# - run: pip install pyre-check
# - run: pyre --noninteractive check