Skip to content

Commit

Permalink
ci: fix API rate limit exceeded
Browse files Browse the repository at this point in the history
  • Loading branch information
liblaf committed Dec 7, 2023
1 parent 933111a commit 0e4e3f1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:

permissions:
contents: write
pull-requests: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -46,6 +45,8 @@ jobs:
uses: actions/checkout@v4
- name: Install Task
uses: arduino/setup-task@v1
with:
repo-token: ${{ github.token }}
- name: Install Poetry
run: pipx install poetry
- name: Setup Python
Expand All @@ -56,7 +57,7 @@ jobs:
- name: Install Dependencies
run: poetry install
- name: Build Executable
run: task dist
run: poetry run task dist
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ jobs:
uses: actions/checkout@v4
- name: Install Task
uses: arduino/setup-task@v1
with:
repo-token: ${{ github.token }}
- name: Install Poetry
run: pipx install poetry
- name: Setup Python
Expand All @@ -58,7 +60,7 @@ jobs:
- name: Install Dependencies
run: poetry install
- name: Build Executable
run: task dist
run: poetry run task dist
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,20 @@ name: Test
on:
push:

permissions:
contents: write
pull-requests: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

jobs:
test:
name: Build Executable
name: Test
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Task
uses: arduino/setup-task@v1
with:
repo-token: ${{ github.token }}
- name: Install Poetry
run: pipx install poetry
- name: Setup Python
Expand All @@ -28,8 +26,8 @@ jobs:
cache: poetry
- name: Install Dependencies
run: poetry install
- name: Build Executable
run: task test
- name: Run Tests
run: poetry run task test
strategy:
matrix:
os:
Expand Down
6 changes: 3 additions & 3 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ tasks:

publish:
cmds:
- poetry publish
- poetry publish --build

setup:
cmds:
- micromamba --yes --name="ai-commit-cli" create libpython-static python=3.11
- micromamba --yes --name="ai-commit-cli" create libpython-static python=3.12
- micromamba --yes --name="ai-commit-cli" run poetry install

test:
cmds:
- pytest
- python -m pytest

0 comments on commit 0e4e3f1

Please sign in to comment.