diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3bde1e9..caa4126 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,28 +19,57 @@ jobs: build-package: runs-on: ubuntu-latest concurrency: - group: ${{ github.event_name }}-${{ github.workflow }}-${{ github.ref_name }}-build + group: ${{ github.event_name }}-${{ github.workflow }}-${{ github.ref_name }}-build-pkg cancel-in-progress: true timeout-minutes: 20 - container: - image: ghcr.io/thombashi/python-ci:3.11 steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 + fetch-tags: true + + - uses: actions/setup-python@v5 + with: + python-version: "3.13" + cache: pip + cache-dependency-path: | + setup.py + **/*requirements.txt + tox.ini + + - run: make setup-ci - run: make build + - uses: actions/upload-artifact@v4 + with: + name: dist + path: ./dist/* + build-docs: runs-on: ubuntu-latest concurrency: - group: ${{ github.event_name }}-${{ github.workflow }}-${{ github.ref_name }}-docs + group: ${{ github.event_name }}-${{ github.workflow }}-${{ github.ref_name }}-build-docs cancel-in-progress: true timeout-minutes: 20 - container: - image: ghcr.io/thombashi/python-ci:3.11 steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 + fetch-tags: true + + - uses: actions/setup-python@v5 + with: + python-version: "3.13" + cache: pip + cache-dependency-path: | + setup.py + **/*requirements.txt + tox.ini + + - run: make setup-ci - run: make docs