ci: lint PR titles, removes husky (#954) #2513
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: python | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
integration: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: npm ci --ignore-scripts | |
- run: make test-metrics-python-django | |
- run: make test-metrics-python-flask | |
- run: make test-webhooks-python-flask | |
- name: Cleanup | |
if: always() | |
run: docker-compose down | |
build: | |
name: ${{ matrix.python-version }} on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
working-directory: packages/python | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
python-version: | |
# https://endoflife.date/python | |
- 3.7 # EOL: June 27th, 2023 | |
- 3.8 # EOL: October 14th, 2024 | |
- 3.9 # EOL: October 5rd, 2025 | |
- '3.10' # EOL: October 4rd, 2026 | |
- '3.11' # EOL: October 24th, 2027 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: make install | |
- name: Check code standards | |
run: make lint | |
- name: Run tests | |
run: make test |