CI: Run tests and codestyle on release branches and tags (#627) #1265
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: Code Style | |
on: | |
push: | |
branches: | |
- main | |
- module/* | |
- 'v*x' | |
tags: | |
- 'v*' | |
pull_request: | |
branches: | |
- main | |
- module/* | |
- 'v*x' | |
jobs: | |
flake8: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Install Python 3.x | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
- name: Install Dependencies | |
run: | | |
pip install tox | |
- name: Check Code Style | |
run: | | |
tox -e codestyle |