-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #80 from ANNUBS/78_mac_win_build_gcroci2
ci: improve files naming, add builds for mac and win OSs, separate linting check
- Loading branch information
Showing
6 changed files
with
65 additions
and
37 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: linting | ||
on: | ||
push: | ||
paths-ignore: | ||
# specific folder locations | ||
- ".vscode/**" | ||
- "docs/**" | ||
# filetypes | ||
- "**.md" | ||
- "**.rst" | ||
- "**.ipynb" | ||
- "**.cff" | ||
- "**.png" | ||
branches: | ||
- main | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
paths-ignore: | ||
# specific folder locations | ||
- ".vscode/**" | ||
- "docs/**" | ||
# filetypes | ||
- "**.md" | ||
- "**.rst" | ||
- "**.ipynb" | ||
- "**.cff" | ||
- "**.png" | ||
|
||
jobs: | ||
lint: | ||
name: Linting build | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: 3.11 | ||
- name: Python info | ||
shell: bash -e {0} | ||
run: | | ||
which python | ||
python --version | ||
- name: Upgrade pip, install dependencies and the package | ||
run: | | ||
python -m pip install --upgrade pip setuptools | ||
python -m pip install .[dev,publishing] | ||
- name: Check style against standards using ruff | ||
run: | | ||
ruff check | ||
ruff format --check |
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
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
File renamed without changes.
Oops, something went wrong.