Skip to content

Commit 95804f6

Browse files
committed
Added black checking CI step.
1 parent 7cf8bc2 commit 95804f6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/ci.yml

+12
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,18 @@ jobs:
158158
run: |
159159
cpp-coveralls -i src -i include -e src/external --exclude-pattern "/usr/*" --dump cpp_cov.json
160160
coveralls --merge=cpp_cov.json --service=github
161+
python-format-test:
162+
runs-on: ubuntu-22.04
163+
steps:
164+
- uses: actions/checkout@v4
165+
- name: Set up Python 3.12
166+
uses: actions/setup-python@v5
167+
with:
168+
python-version: 3.12
169+
- run: pip install .[format]
170+
name: install black
171+
- run: black --check openmc/ tests/
172+
name: Check if anything needs to be black formatted
161173

162174
finish:
163175
needs: main

0 commit comments

Comments
 (0)