Skip to content

Commit

Permalink
Update codestyle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsteve committed Dec 24, 2023
1 parent 3533cff commit 5298dd6
Showing 1 changed file with 26 additions and 23 deletions.
49 changes: 26 additions & 23 deletions .github/workflows/codestyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,34 @@ on:
pull_request:
branches:
- main

jobs:
build:
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest]
python-version: [3.10]

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 pip setuptools wheel --upgrade
python -m pip install -e '.[dev]'
- name: Lint with Black
run: |
black --check --diff roentgen
- name: flake8
run: |
flake8 --count roentgen
- name: isort
run: |
isort roentgen -c
platform: ["ubuntu-latest"]
python-version: [3.10, 3.11]
defaults:
run:
shell: bash
runs-on: ${{ matrix.platform }}
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 pip setuptools wheel --upgrade
python -m pip install -e '.[dev]'
- name: Lint with Black
run: |
black --check --diff roentgen
- name: flake8
run: |
flake8 --count roentgen
- name: isort
run: |
isort roentgen -c

0 comments on commit 5298dd6

Please sign in to comment.