From 4192a58564b8fd8f49654ea422658c923ebe3e2e Mon Sep 17 00:00:00 2001 From: WyattBlue Date: Wed, 20 Nov 2024 23:53:53 -0500 Subject: [PATCH] Test on all platforms --- .github/workflows/build.yml | 14 ++++++++++---- .github/workflows/python-publish.yml | 11 +++++------ 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7178232b1..6da9c6090 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,17 +39,23 @@ jobs: make -C docs html main: - runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + python-version: ["3.10"] + + runs-on: ${{ matrix.os }} timeout-minutes: 20 + steps: - name: Checkout uses: actions/checkout@v4 - - name: Python + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: ${{ matrix.python-version }} - name: Install Auto-Editor - run: pip install -e . + run: pip install . - name: Run Debug run: auto-editor --debug - name: Test diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index a1ef4d2fe..ccf72a1bb 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -5,6 +5,8 @@ on: jobs: deploy: runs-on: ubuntu-latest + permissions: + id-token: write steps: - uses: actions/checkout@v4 - name: Set up Python @@ -15,10 +17,7 @@ jobs: run: | python -m pip install --upgrade pip pip install setuptools build wheel twine - - name: Build and publish - env: - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PIP_PASSWORD }} - run: | python -m build - twine upload dist/* + + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1