Build using numpy 2 #298
Workflow file for this run
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 formatting | |
on: | |
pull_request: | |
jobs: | |
ubuntu: | |
name: Ubuntu | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
python: [ "3.12" ] | |
os: [ ubuntu-22.04 ] | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Cancel Previous Runs | |
uses: styfle/cancel-workflow-action@0.12.1 | |
with: | |
access_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Install black | |
run: | | |
python -m pip install black | |
- name: Validate code | |
run: | | |
find . -name '*.py'|grep -v headers|grep -v demes-spec|xargs python -m black --check | |