Skip to content

Commit

Permalink
Fix github action
Browse files Browse the repository at this point in the history
  • Loading branch information
hglong16 committed Jun 1, 2023
1 parent c863a6f commit 037fa0c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@v3

- name: Install Rye
uses: sbarrios93/[email protected]
id: rye-installer
- name: Install Rye
run: |
curl -sSf https://rye-up.com/get | bash
- name: Show Rye version
run: |
echo "Installed Rye commit hash: ${{ steps.rye-installer.outputs.rye_commit_hash }}"
rye --version
- name: Sync dependencies
run: |
rye sync
- name: Sync dependencies
run: |
rye sync
- name: Linting
run: |
rye run lint
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.rye.scripts]
lint = { chain = ["lint:black", "lint:isort" ] }
"lint:black" = "black --check src"
"lint:isort" = "isort src"

[tool.rye]
managed = true
Expand Down
2 changes: 1 addition & 1 deletion src/execy/exec.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import time
import asyncio
import time
from functools import wraps


Expand Down

0 comments on commit 037fa0c

Please sign in to comment.