Skip to content

Commit

Permalink
Update CI platforms/actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bwoodsend committed Jan 2, 2024
1 parent f593cbb commit 1b98000
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 31 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
architecture: x86
steps:

- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-python@v1
- uses: actions/setup-python@v5
with:
python-version: 3.9
architecture: ${{ matrix.architecture }}
Expand Down Expand Up @@ -54,9 +54,9 @@ jobs:
- if: startsWith(matrix.os, 'macos')
run: mv arm-dist/* dist

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: wheels
name: wheels-${{ matrix.os }}-${{ matrix.architecture }}
path: dist/*.whl

Whacky-Linux:
Expand All @@ -73,9 +73,9 @@ jobs:

steps:

- uses: actions/checkout@v2
- uses: crazy-max/[email protected]

- uses: actions/checkout@v4
- run: sudo apt-get update && sudo apt-get install -y qemu-user-static
- run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes --credential yes
- name: Build docker image
run: |
docker build -t bob-the-builder --build-arg BASE=${{ matrix.base }} .
Expand All @@ -89,9 +89,9 @@ jobs:
"
- name: Upload wheel(s) as build artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: wheels
name: wheels-${{ matrix.base }}
path: dist/*.whl

- name: Install and test wheel
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
- uses: actions/checkout@v4
- uses: actions/setup-python@v5

- run: pip install -e .
- run: pip install -r docs/requirements.txt
Expand Down
26 changes: 6 additions & 20 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.10', 3.9, 3.7, 3.8]
python-version: ['3.10', 3.9, 3.7, 3.8, 3.11, 3.12]
architecture: ['x64']
include:
- os: macos-10.15
python-version: 3.9
architecture: 'x64'
- os: macos-11.0
- os: macos-latest
python-version: 3.9
architecture: 'x64'
- name: Windows
Expand All @@ -34,25 +31,13 @@ jobs:

steps:

- uses: actions/checkout@v2
- run: |
git fetch --prune --unshallow
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}

- name: Cache pip cached wheels
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: pip-cache
key: restore-key
restore-keys: restore-key

- name: Install a 32 bit compiler
if: ${{ matrix.architecture == 'x86' }}
uses: bwoodsend/setup-winlibs-action@v1
Expand All @@ -61,7 +46,7 @@ jobs:

- name: Install
shell: bash
run: pip install --cache-dir=pip-cache -e .[test] toml
run: pip install -e .[test] toml setuptools

- name: Compile
run: python setup.py build
Expand All @@ -70,6 +55,7 @@ jobs:
run: pytest

# Test PyInstaller.
- run: pip uninstall -y motmot && pip install .
- run: pip install pyinstaller
- working-directory: tests/PyInstaller_
run: pyinstaller frozen-pytest.spec
Expand Down

0 comments on commit 1b98000

Please sign in to comment.