Style test by xianxl #102
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: style | |
run-name: Style test by ${{ github.actor }} | |
on: | |
# Trigger the workflow on push to main or any pull request | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
style-tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Black check | |
run: | | |
pip install black==24.8.0 | |
black --diff --check projects | |
- name: isort check | |
run: | | |
pip install isort==5.13.2 | |
isort --profile black --check projects |