Skip to content

Bump actions/checkout from 6.0.2 to 7.0.0 (#43) #57

Bump actions/checkout from 6.0.2 to 7.0.0 (#43)

Bump actions/checkout from 6.0.2 to 7.0.0 (#43) #57

Workflow file for this run

name: Sytanx check using py_compile
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-22.04
timeout-minutes: 5
strategy:
matrix:
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
permissions:
contents: read
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -U pip
pip install -e ".[testing]"
- name: Run py_compile for main code
run: |
find slack_discovery_sdk -name '*.py' | xargs python -m py_compile
- name: Run py_compile for test code
run: |
find tests -name '*.py' | xargs python -m py_compile