From 5763153dfa24835b2c828db03e8e82922c833a89 Mon Sep 17 00:00:00 2001 From: Reid Johnson Date: Mon, 7 Nov 2022 02:47:09 -0800 Subject: [PATCH] Update Workflows - Use latest action versions - Fix formatting --- .github/workflows/github-pages.yml | 48 ++++++++++---------- .github/workflows/python-app.yml | 6 +-- .github/workflows/python-publish.yml | 66 ++++++++++++++-------------- 3 files changed, 61 insertions(+), 59 deletions(-) diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index c9b31f2..d8cfa04 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -10,31 +10,31 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - name: Set up Python 3.10 - uses: actions/setup-python@v2 - with: - python-version: '3.10' + - name: Set up Python 3.10 + uses: actions/setup-python@v4 + with: + python-version: '3.10' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r ./requirements.txt - pip install -r ./docs/sphinx_requirements.txt - python setup.py build_ext --inplace && pip install . + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r ./requirements.txt + pip install -r ./docs/sphinx_requirements.txt + python setup.py build_ext --inplace && pip install . - - name: Build documents - run: | - cd ./docs/ - make clean - make html - env: - GA_TRACKING_ID: ${{ secrets.GA_TRACKING_ID }} + - name: Build documents + run: | + cd ./docs/ + make clean + make html + env: + GA_TRACKING_ID: ${{ secrets.GA_TRACKING_ID }} - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_branch: gh-pages - publish_dir: ./docs/_build/html/ + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_branch: gh-pages + publish_dir: ./docs/_build/html/ diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index faa0047..368ffa2 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -7,16 +7,16 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python 3.10 - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: '3.10' - name: Cache dependencies id: cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 07ebe2e..e09add8 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -16,44 +16,46 @@ jobs: os: [ubuntu-20.04, windows-2019, macOS-latest] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v4 + with: + python-version: '3.10' - - name: Install cibuildwheel - run: python -m pip install cibuildwheel==2.11.2 + - name: Install cibuildwheel + run: python -m pip install cibuildwheel==2.11.2 - - name: Build wheels for Linux - if: matrix.os == 'ubuntu-20.04' - run: | - python -m cibuildwheel --output-dir wheelhouse - env: - CIBW_SKIP: "pp* *i686* *musllinux*" - CIBW_PROJECT_REQUIRES_PYTHON: ">=3.8" - CIBW_BEFORE_BUILD: pip install -r requirements.txt && python setup.py build_ext --inplace && pip install . + - name: Build wheels for Linux + if: matrix.os == 'ubuntu-20.04' + run: | + python -m cibuildwheel --output-dir wheelhouse + env: + CIBW_SKIP: "pp* *i686* *musllinux*" + CIBW_PROJECT_REQUIRES_PYTHON: ">=3.8" + CIBW_BEFORE_BUILD: pip install -r requirements.txt && python setup.py build_ext --inplace && pip install . - - name: Build wheels for Windows - if: matrix.os == 'windows-2019' - run: | - python -m cibuildwheel --output-dir wheelhouse - env: - CIBW_SKIP: "pp* *i686* *win32" - CIBW_PROJECT_REQUIRES_PYTHON: ">=3.8" - CIBW_BEFORE_BUILD: pip install -r requirements.txt && python setup.py build_ext --inplace && pip install . + - name: Build wheels for Windows + if: matrix.os == 'windows-2019' + run: | + python -m cibuildwheel --output-dir wheelhouse + env: + CIBW_SKIP: "pp* *i686* *win32" + CIBW_PROJECT_REQUIRES_PYTHON: ">=3.8" + CIBW_BEFORE_BUILD: pip install -r requirements.txt && python setup.py build_ext --inplace && pip install . - - name: Build wheels for macOS - if: matrix.os == 'macos-latest' - run: | - python -m cibuildwheel --output-dir wheelhouse - env: - CIBW_ARCHS_MACOS: "x86_64 universal2 arm64" - CIBW_SKIP: "pp* *i686*" - CIBW_PROJECT_REQUIRES_PYTHON: ">=3.8" - CIBW_BEFORE_BUILD: pip install -r requirements.txt && python setup.py build_ext --inplace && pip install . + - name: Build wheels for macOS + if: matrix.os == 'macos-latest' + run: | + python -m cibuildwheel --output-dir wheelhouse + env: + CIBW_ARCHS_MACOS: "x86_64 universal2 arm64" + CIBW_SKIP: "pp* *i686*" + CIBW_PROJECT_REQUIRES_PYTHON: ">=3.8" + CIBW_BEFORE_BUILD: pip install -r requirements.txt && python setup.py build_ext --inplace && pip install . - - uses: actions/upload-artifact@v2 - with: - path: ./wheelhouse/*.whl + - uses: actions/upload-artifact@v3 + with: + path: ./wheelhouse/*.whl upload_pypi: needs: build_wheels