Skip to content

Commit

Permalink
Update xcookie
Browse files Browse the repository at this point in the history
  • Loading branch information
Erotemic committed Aug 13, 2024
1 parent 4dcf651 commit 1c59e4e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 19 deletions.
42 changes: 24 additions & 18 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ jobs:
- name: Checkout source
uses: actions/checkout@v4.1.1
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
uses: docker/setup-qemu-action@v3.0.0
if: runner.os == 'Linux' && matrix.arch != 'auto'
with:
platforms: all
Expand All @@ -141,6 +141,7 @@ jobs:
path: ./wheelhouse/utool*.whl
test_purepy_wheels:
name: ${{ matrix.python-version }} on ${{ matrix.os }}, arch=${{ matrix.arch }} with ${{ matrix.install-extras }}
if: "! startsWith(github.event.ref, 'refs/heads/release')"
runs-on: ${{ matrix.os }}
needs:
- build_purepy_wheels
Expand Down Expand Up @@ -176,51 +177,51 @@ jobs:
arch: auto
- python-version: '3.12'
install-extras: tests
os: windows-latest
os: macOS-latest
arch: auto
- python-version: '3.12'
install-extras: tests
os: windows-latest
arch: auto
- python-version: '3.8'
install-extras: tests,optional
os: windows-latest
os: ubuntu-latest
arch: auto
- python-version: '3.9'
install-extras: tests,optional
os: windows-latest
os: ubuntu-latest
arch: auto
- python-version: '3.10'
install-extras: tests,optional
os: windows-latest
os: ubuntu-latest
arch: auto
- python-version: '3.11'
install-extras: tests,optional
os: windows-latest
os: ubuntu-latest
arch: auto
- python-version: '3.12'
install-extras: tests,optional
os: windows-latest
os: ubuntu-latest
arch: auto
- python-version: '3.8'
install-extras: tests,optional
os: windows-latest
os: macOS-latest
arch: auto
- python-version: '3.9'
install-extras: tests,optional
os: windows-latest
os: macOS-latest
arch: auto
- python-version: '3.10'
install-extras: tests,optional
os: windows-latest
os: macOS-latest
arch: auto
- python-version: '3.11'
install-extras: tests,optional
os: windows-latest
os: macOS-latest
arch: auto
- python-version: '3.12'
install-extras: tests,optional
os: windows-latest
os: macOS-latest
arch: auto
- python-version: '3.8'
install-extras: tests,optional
Expand Down Expand Up @@ -249,7 +250,7 @@ jobs:
uses: ilammy/msvc-dev-cmd@v1
if: matrix.os == 'windows-latest'
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
uses: docker/setup-qemu-action@v3.0.0
if: runner.os == 'Linux' && matrix.arch != 'auto'
with:
platforms: all
Expand Down Expand Up @@ -335,9 +336,8 @@ jobs:
runs-on: ubuntu-latest
if: github.event_name == 'push' && ! startsWith(github.event.ref, 'refs/tags') && ! startsWith(github.event.ref, 'refs/heads/release')
needs:
- build_and_test_sdist
- build_purepy_wheels
- test_purepy_wheels
- build_and_test_sdist
steps:
- name: Checkout source
uses: actions/checkout@v4.1.1
Expand Down Expand Up @@ -410,9 +410,8 @@ jobs:
runs-on: ubuntu-latest
if: github.event_name == 'push' && (startsWith(github.event.ref, 'refs/tags') || startsWith(github.event.ref, 'refs/heads/release'))
needs:
- build_and_test_sdist
- build_purepy_wheels
- test_purepy_wheels
- build_and_test_sdist
steps:
- name: Checkout source
uses: actions/checkout@v4.1.1
Expand Down Expand Up @@ -500,6 +499,12 @@ jobs:
shell: bash
run: ls -la wheelhouse
- run: 'echo "Automatic Release Notes. TODO: improve" > ${{ github.workspace }}-CHANGELOG.txt'
- name: Tag Release Commit
if: (startsWith(github.event.ref, 'refs/heads/release'))
run: |-
export VERSION=$(python -c "import setup; print(setup.VERSION)")
git tag "v$VERSION"
git push origin "v$VERSION"
- uses: softprops/action-gh-release@v1
name: Create Release
id: create_release
Expand All @@ -508,8 +513,9 @@ jobs:
with:
body_path: ${{ github.workspace }}-CHANGELOG.txt
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
name: Release ${{ github.ref }}
body: Automatic Release
generate_release_notes: true
draft: true
prerelease: false
files: |-
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# need to edit the conf.py
cd ~/code/utool/docs
sphinx-apidoc --private --separate -f -o ~/code/utool/docs/source/auto ~/code/utool/utool
sphinx-apidoc --private --separate --force --output-dir ~/code/utool/docs/source/auto ~/code/utool/utool
# Note: the module should importable before running this
# (e.g. install it in developer mode or munge the PYTHONPATH)
Expand Down
Empty file modified setup.py
100644 → 100755
Empty file.

0 comments on commit 1c59e4e

Please sign in to comment.