Skip to content

Commit

Permalink
fix: remove ci steps
Browse files Browse the repository at this point in the history
  • Loading branch information
jjjermiah committed May 20, 2024
1 parent 26b3e31 commit fe91c82
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 41 deletions.
40 changes: 0 additions & 40 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
################################################################################################
Expand Down Expand Up @@ -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'

Expand Down
5 changes: 4 additions & 1 deletion pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ copier = ">=9.2.0,<9.3"
[feature.lint.dependencies]
ruff = ">=0.4.4,<0.5"

[feature.lint.tasks]
style = { cmd = "ruff check ." }

[feature.release.dependencies]
python-semantic-release = ">=9.7.3,<9.8"

[feature.release.tasks]
semver = 'echo "Next Version is: $(semantic-release -c releaserc.toml version --print)"'
semver = 'echo "Next Version is: $(semantic-release -c releaserc.toml version --print)"'
44 changes: 44 additions & 0 deletions ruff.toml
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"

0 comments on commit fe91c82

Please sign in to comment.