Skip to content

Commit

Permalink
bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
clbarnes committed Dec 21, 2023
1 parent 0e1fab4 commit 042d7c9
Show file tree
Hide file tree
Showing 3 changed files with 106 additions and 106 deletions.
194 changes: 97 additions & 97 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,106 +1,106 @@
on: [push, pull_request]

defaults:
run:
shell: bash
run:
shell: bash

jobs:
lint-rust:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v1
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- run: make lint-rust

lint-rust:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v1
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- run: make lint-rust
lint-python:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.x"
- run: pip install $(grep -E '^(black|ruff|mypy|numpy)' requirements.txt)
- run: make lint-python

lint-python:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- run: pip install $(grep -E '^(black|ruff|mypy|numpy)' requirements.txt)
- run: make lint-python
test-rust:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: Swatinem/rust-cache@v1
- run: cargo test

test-rust:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: Swatinem/rust-cache@v1
- run: cargo test
test-python:
strategy:
fail-fast: false
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: Swatinem/rust-cache@v1
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- run: |
sudo apt-get install libspatialindex-dev
pip install -U pip wheel
pip install -r requirements.txt
name: Install dependencies
- run: |
mkdir -p $TGT_DIR
rm -f $TGT_DIR/*.whl
maturin build --release --interpreter python --out $TGT_DIR
pip install $TGT_DIR/*.whl
name: Install package
env:
TGT_DIR: "target/wheels/${{ matrix.python-version }}"
- run: pytest --verbose

test-python:
strategy:
fail-fast: false
matrix:
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: Swatinem/rust-cache@v1
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- run: |
sudo apt-get install libspatialindex-dev
pip install -U pip wheel
pip install -r requirements.txt
name: Install dependencies
- run: |
mkdir -p $TGT_DIR
rm -f $TGT_DIR/*.whl
maturin build --release --interpreter python --out $TGT_DIR
pip install $TGT_DIR/*.whl
name: Install package
env:
TGT_DIR: "target/wheels/${{ matrix.python-version }}"
- run: pytest --verbose

deploy:
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-20.04]
needs: [lint-rust, lint-python, test-rust, test-python]
runs-on: ${{ matrix.os }}
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- uses: messense/maturin-action@v1
with:
manylinux: auto
command: publish
args: -u __token__ -p ${{ secrets.MATURIN_PASSWORD }} --skip-existing --universal2
name: Deploy wheels
deploy:
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-20.04]
needs: [lint-rust, lint-python, test-rust, test-python]
runs-on: ${{ matrix.os }}
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions/setup-python@v2
with:
python-version: "3.9"
- uses: messense/maturin-action@v1
with:
manylinux: auto
command: publish
args: -u __token__ -p ${{ secrets.MATURIN_PASSWORD }} --skip-existing --universal2
name: Deploy wheels
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Sphinx==6.1.3
Sphinx==7.2.6
sphinx-rtd-theme
16 changes: 8 additions & 8 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
# build
maturin==0.14.16
maturin==1.4.0

# run
numpy==1.24.2
trimesh[easy]==3.21.2
numpy==1.26.2
trimesh[easy]==4.0.7

# test
meshio==5.3.4
pytest==7.2.2
pytest-runner==6.0.0
pytest==7.4.3
pytest-runner==6.0.1

# bench
# pyoctree==0.2.10
pytest-benchmark==4.0.0

# develop
pip
black==23.3.0
black==23.12.0
watchdog==3.0.0
ruff
coverage==7.2.2
mypy==1.1.1
coverage==7.3.4
mypy==1.7.1

# docs
-r docs/requirements.txt

0 comments on commit 042d7c9

Please sign in to comment.