Skip to content

Commit

Permalink
Add Ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
jpdean committed Jul 8, 2024
1 parent a23ed23 commit 421e721
Showing 1 changed file with 4 additions and 36 deletions.
40 changes: 4 additions & 36 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,45 +26,13 @@ jobs:

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# - uses: actions/checkout@v3
# with:
# repository: FEniCS/basix
# ref: main

# # Runs a single command using the runners shell
# - name: Install basix
# run: |
# cmake -G Ninja -DCMAKE_BUILD_TYPE=${DOLFINX_CMAKE_BUILD_TYPE} -DCMAKE_CXX_FLAGS=${DOLFINX_CMAKE_CXX_FLAGS} -B build-dir -S ./cpp
# cmake --build build-dir
# cmake --install build-dir
# python3 -m pip install ./python

# # Runs a set of commands using the runners shell
# - name: Install UFL and FFCx
# run: |
# python3 -m pip install git+https://github.com/FEniCS/ufl.git
# python3 -m pip install git+https://github.com/FEniCS/ffcx.git@jpdean/meshview

# - uses: actions/checkout@v3
# with:
# repository: FEniCS/dolfinx
# ref: jpdean/mixed_domain

# # Runs a single command using the runners shell
# - name: Install dolfinx
# run: |
# mkdir -p build-real
# cd build-real
# PETSC_ARCH=linux-gnu-real-32 cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr/local/dolfinx-real -DCMAKE_BUILD_TYPE=${DOLFINX_CMAKE_BUILD_TYPE} -DCMAKE_CXX_FLAGS=${DOLFINX_CMAKE_CXX_FLAGS} ../cpp
# ninja install
# cd ../python
# CXXFLAGS=${DOLFINX_CMAKE_CXX_FLAGS} PETSC_ARCH=linux-gnu-real-32 pip3 install .

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

- name: Flake8
run: flake8 .
- name: Ruff
run: |
ruff check .
ruff format --check .
- name: Run demos (serial)
run: |
Expand Down

0 comments on commit 421e721

Please sign in to comment.