Skip to content

Commit

Permalink
test: ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishabh672003 committed Jun 30, 2024
1 parent 96f8bc5 commit 82b6d9f
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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: |
ls
ruff check .
ruff fix .
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 82b6d9f

Please sign in to comment.