Skip to content

Update numpy requirement from <=2.1.3 to <=2.2.0 #551

Update numpy requirement from <=2.1.3 to <=2.2.0

Update numpy requirement from <=2.1.3 to <=2.2.0 #551

Workflow file for this run

name: Checks
on: [push, pull_request, workflow_call]
jobs:
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: psf/black@stable
isort:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: isort/isort-action@v1
pyright:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pyright
- name: Get type stubs
run: |
git clone https://github.com/microsoft/python-type-stubs python-type-stubs
- name: Run Pyright
run: |
pyright
pylint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint setuptools
pip install -r requirements.txt
- name: Analysing the code with pylint
run: |
pylint $(git ls-files 'planetmapper/*.py') setup.py check_release_version.py
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install coveralls coverage[toml]
pip install -r requirements.txt
- name: Run tests
run: |
python -m coverage run -m unittest discover -s tests -v
- name: Coverage report
run: |
python -m coverage report
- name: Upload coverage to Coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.python-version }}, ${{ matrix.os }}
COVERALLS_PARALLEL: true
run: |
coveralls --service=github
coveralls:
needs: test
runs-on: ubuntu-latest
container: python:3-slim
steps:
- name: Indicate completion to coveralls.io
run: |
pip3 install --upgrade coveralls
coveralls --service=github --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}