Remove Python 3.6 from CI builds #15
This file contains 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: Sytanx check using py_compile | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
strategy: | |
matrix: | |
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
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 | |