Refactor the virtualfile_in function to accept more 1-D arrays #10655
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
# Code lint and style checks | |
# | |
# This workflow runs code style and lint checks to check if the codes have | |
# consistent code style and are high-quality. | |
# | |
# It is run on every commit to the main and pull request branches. It is also | |
# scheduled to run daily on the main branch. | |
# | |
name: Style Checks | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
# Schedule daily tests | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
style_check: | |
name: Style Checks | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout current git repository | |
- name: Checkout | |
uses: actions/[email protected] | |
# Setup Python | |
- name: Set up Python | |
uses: actions/[email protected] | |
with: | |
python-version: '3.11' | |
- name: Install packages | |
run: | | |
python -m pip install black blackdoc docformatter pylint ruff | |
python -m pip list | |
sudo apt-get install dos2unix | |
- name: Formatting check (black, blackdoc, docformatter, ruff) | |
run: make check | |
- name: Linting (pylint) | |
run: make lint | |
- name: Ensure files use UNIX line breaks and have 644 permission | |
run: | | |
find . -type f -not -path '*/\.git/*' -exec grep -Iq . {} \; -exec dos2unix --quiet {} \; | |
find . -type f -not -path '*/\.git/*' -exec grep -Iq . {} \; -exec chmod 644 {} \; | |
if [[ $(git ls-files -m) ]]; then git --no-pager diff HEAD; exit 1; fi |