-
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.
- Loading branch information
Showing
3 changed files
with
48 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,44 +9,6 @@ on: | |
branches: [main, development] | ||
|
||
jobs: | ||
################################################################################################ | ||
# Unit-Tests: Run unit tests using pytest | ||
################################################################################################ | ||
Unit-Tests: | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 15 # Consider increasing timeout | ||
env: | ||
PIXI_ENV: "dev" | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
# os: [ubuntu-latest, macos-latest, macos-14, windows-latest] | ||
# python-version: ["3.12", "3.11", "3.10"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Pixi | ||
uses: prefix-dev/[email protected] | ||
with: | ||
environments: ${{ env.PIXI_ENV }} | ||
pixi-version: v0.22.0 | ||
cache: false | ||
# cache-key: pixi-ENV_${{ env.PIXI_ENV }}- | ||
|
||
- name: Run pytest | ||
run: | | ||
pixi run which python | ||
pixi run test | ||
- name: Upload coverage report artifact to be used by Codecov | ||
# only upload if matrix.os is ubuntu-latest and matrix.python-version is 3.12 | ||
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12' | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: coverage-report | ||
path: coverage-report | ||
|
||
################################################################################################ | ||
# Ruff: Run ruff linter | ||
################################################################################################ | ||
|
@@ -82,8 +44,6 @@ jobs: | |
issues: write | ||
pull-requests: write | ||
|
||
needs: [Unit-Tests, Ruff, Docs] | ||
|
||
# if pulling to main, deploy to PyPI | ||
if: github.ref == 'refs/heads/main' | ||
|
||
|
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,44 @@ | ||
|
||
target-version = "py39" | ||
output-format = "full" | ||
line-length = 99 | ||
fix = true | ||
# extend-exclude is used to exclude directories from the flake8 checks | ||
extend-exclude = ["docs/*", "tests/*"] | ||
|
||
[lint] | ||
select = [ | ||
"E", | ||
"F", | ||
"W", # flake8 | ||
"C", # mccabe | ||
"I", # isort | ||
"N", # pep8-naming | ||
"D", # flake8-docstrings | ||
"ANN", # flake8-annotations | ||
"S", # flake8-bandit | ||
"BLE", # flake8-blind-except | ||
"B", # flake8-bugbear | ||
"A", # flake8-builtins | ||
"G", # flake8-logging-format | ||
"ERA", # eradicate | ||
"ISC", # flake8-implicit-str-concat | ||
"RUF", # Ruff-specific rules | ||
"TCH", # flake8-type-checking | ||
] | ||
ignore = ["ANN101"] | ||
unfixable = [ | ||
"ERA", # Don't remove commented-out code | ||
] | ||
|
||
[lint.per-file-ignores] | ||
"tests/*" = ["S101"] | ||
|
||
[lint.mccabe] | ||
max-complexity = 10 | ||
|
||
[lint.isort] | ||
known-first-party = ["{{ cookiecutter.project_slug }}"] | ||
|
||
[lint.pydocstyle] | ||
convention = "google" |