Skip to content

Bump semgrep from 1.85.0 to 1.96.0 #512

Bump semgrep from 1.85.0 to 1.96.0

Bump semgrep from 1.85.0 to 1.96.0 #512

Workflow file for this run

name: build
on:
workflow_dispatch:
push:
branches:
- master
pull_request:
branches:
- master
env:
PYTHONUTF8: 1
PYTHONIOENCODING: UTF-8
jobs:
commit:
strategy:
matrix:
env-version:
- os: "ubuntu-20.04"
python: 3.8.18
- os: "ubuntu-latest"
python: 3.12.3
- os: "windows-latest"
python: 3.12.3
- os: "macos-latest"
python: 3.12.3
runs-on: ${{ matrix.env-version.os }}
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup python ${{ matrix.env-version.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.env-version.python }}
- name: setup
run: |
python -m pip install --upgrade pip
pip3 install --upgrade click==8.0.2 pyinstaller
- name: install
run: make install-dev
- name: lint
run: make lint
- name: coverage
run: make coverage
- name: package
run: python3 -m build
- name: compile .exe
if: matrix.env-version.os == 'windows-latest'
run: |
pyinstaller --clean --noconfirm --strip --noupx --console --onefile --add-data 'whispers/config.yml;whispers' --add-data 'whispers/rules/*.yml;whispers/rules' --name whispers.exe whispers/main.py
dist/whispers.exe --init
dist/whispers.exe --ast -F None tests/fixtures
- name: compile .bin
if: matrix.env-version.os != 'windows-latest'
run: |
pyinstaller --clean --noconfirm --strip --noupx --console --onefile --add-data 'whispers/config.yml:whispers' --add-data 'whispers/rules/*.yml:whispers/rules' --name whispers.bin whispers/main.py
dist/whispers.bin --help
dist/whispers.bin --init
dist/whispers.bin --ast -F None tests/fixtures