From 47e3a572e4dc730f7c529fb165d10401e5512ecb Mon Sep 17 00:00:00 2001 From: Dowon Date: Sat, 28 Sep 2024 00:54:09 +0900 Subject: [PATCH] chore(ci): refactor gitHub actions workflows --- .github/workflows/pypi.yml | 25 +------------------------ .github/workflows/test.yml | 3 ++- 2 files changed, 3 insertions(+), 25 deletions(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index a8d10cf..b98eee8 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -7,30 +7,7 @@ on: jobs: test: name: test - runs-on: macos-latest - strategy: - matrix: - python-version: - - "3.10" - - "3.11" - - "3.12" - - steps: - - uses: actions/checkout@v4 - - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - - - uses: yezz123/setup-uv@v4 - - - name: Install dependencies - run: | - uv pip install --system ".[test]" - - - name: Run tests - run: pytest -v + uses: ./.github/workflows/test.yml build: name: build diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f345788..49fba47 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,6 +4,7 @@ on: pull_request: paths: - "adetailer/**.py" + workflow_call: jobs: test: @@ -24,7 +25,7 @@ jobs: with: python-version: ${{ matrix.python-version }} - - uses: yezz123/setup-uv@v4 + - uses: astral-sh/setup-uv@v3 - name: Install dependencies run: |