Skip to content
This repository has been archived by the owner on Jan 19, 2025. It is now read-only.

rm unncessary code block for demo #3

rm unncessary code block for demo

rm unncessary code block for demo #3

Workflow file for this run

name: build
on:
push:
branches: [ main ]
paths-ignore:
- 'docs/**'
pull_request:
branches: [ main ]
paths-ignore:
- 'docs/**'
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.11"]
mpi: ['openmpi']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Set up MPI ${{ matrix.mpi }}
uses: mpi4py/setup-mpi@v1
with:
mpi: ${{ matrix.mpi }}
- name: Install package and dependencies
run: |
sudo apt install libopenmpi-dev
python -m pip install --upgrade pip
python -m pip install flake8
python -m pip install -e ".[dev,examples,analytics]"
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors
flake8 . --count --select=E9,F63,F7 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
# - name: Test pytest with MPI
# run: |
# mpirun -n 2 python3 -m pytest --with-mpi