Skip to content

Commit

Permalink
πŸ‘· ci: improve actions
Browse files Browse the repository at this point in the history
  • Loading branch information
zrr1999 committed Apr 9, 2024
1 parent da1fed8 commit 10450f4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches: [main]
pull_request:
workflow_dispatch:

permissions:
contents: write
Expand Down
12 changes: 3 additions & 9 deletions .github/workflows/codestyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,19 @@ on:
push:
branches: [main]
pull_request:
workflow_dispatch:

jobs:
code-style-check:
runs-on: ubuntu-latest
name: CodeStyle Check
steps:
- name: Checkout
- name: Checkout πŸ“¦
uses: actions/checkout@v3

- name: Install python
- name: Install python πŸ“¦
uses: actions/setup-python@v4
with:
python-version: "3.12"

- name: Install dependencies
run: |
pip install -e .[all]
pip install pytest
- name: Run pre-commit
- name: Run pre-commit βœ…
uses: pre-commit/action@v3.0.0
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
permissions:
id-token: write
steps:
- name: Checkout
- name: Checkout πŸ“¦
uses: actions/checkout@v3
- name: Setup PDM
- name: Setup PDM πŸ“¦
uses: pdm-project/setup-pdm@v3
with:
python-version: "3.12"
Expand All @@ -40,6 +40,8 @@ jobs:
permissions:
id-token: write
steps:
- name: Checkout πŸ“¦
uses: actions/checkout@v3
- name: Download wheels πŸ‘·β€β™‚οΈ
uses: actions/download-artifact@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ watch = ["watchfiles"]
all = ["pyfuture[watch]"]

[project.urls]
Homepage = "https://pypi.org/project/pyfuture"
Homepage = "https://github.com/zrr-lab/pyfuture.git"
Repository = "https://github.com/zrr-lab/pyfuture.git"

[project.scripts]
Expand Down

0 comments on commit 10450f4

Please sign in to comment.