Update for NumPy 2.0 and Python 3.13 #120
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Cesium | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
name: Test cesium | |
runs-on: ubuntu-latest | |
timeout-minutes: 90 | |
steps: | |
- uses: actions/setup-python@v1 | |
with: | |
python-version: "3.8" | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cache | |
~/.local | |
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} | |
- name: Checkout branch being tested | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
submodules: true | |
clean: false | |
- name: Install dependencies & configure cesium | |
run: | | |
pip install --upgrade pip | |
pip install wheel numpy requests six python-dateutil pytest pytest-cov mock coverage | |
make install | |
pip install cython==0.29.23 | |
python setup.py build_ext -i | |
pip install -e . | |
which python; python --version | |
- name: Formatting and linting checks | |
if: github.ref != 'refs/heads/main' | |
run: | | |
pip install pre-commit | |
pre-commit run --from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }} | |
- name: Run test suite | |
run: | | |
if [[ -n $COVERAGE ]]; then | |
PYTEST_FLAGS='--cov=./' | |
fi | |
PYTHONPATH=. python -m pytest -v $PYTEST_FLAGS |