Skip to content

Commit

Permalink
ci: Add release and ruff lint workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
seriaati committed Jun 27, 2024
1 parent 08d981c commit bf9aa41
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Create Release

on:
push:
branches: [ main ]

jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Create release
uses: seriaati/create-release@main
29 changes: 29 additions & 0 deletions .github/workflows/ruff-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Ruff lint

on:
push:
branches: [ main ]
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened, closed]

jobs:
ruff-lint:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff
- name: Run linter without fix
run: ruff check --output-format=github .

0 comments on commit bf9aa41

Please sign in to comment.