Skip to content

Commit

Permalink
feat: configured CI/CD pipeline (#1)
Browse files Browse the repository at this point in the history
* test: ci/cd

* fix: fixed the ci/cd

* fix: add ruff installation through pip
  • Loading branch information
Rishabh672003 authored Jun 30, 2024
1 parent 96f8bc5 commit 2321d91
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 2 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python application

on:
push:
branches: ["main", "github-action"]
pull_request:
branches: ["main"]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup PDM
uses: pdm-project/setup-pdm@v4
- name: Install dependencies
run: pdm install && pip install ruff
- name: Lint with ruff
run: |
ruff check .
31 changes: 29 additions & 2 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,10 @@ build-backend = "pdm.backend"
[tool.pdm]
distribution = true

[tool.pdm.dev-dependencies]
lint = [
"ruff>=0.5.0",
]

[project.scripts]
pyfix-imports = "pyfix_imports.commandline.cli:cli"

0 comments on commit 2321d91

Please sign in to comment.