Skip to content

Fix numpy install. #109

Fix numpy install.

Fix numpy install. #109

Workflow file for this run

name: Lint
on: [push, pull_request]
env:
LLVM_CONFIG: /usr/bin/llvm-config-10
PS_PACKAGES: libps4000 libps5000 libps6000
GMP_PACKAGES: libgmp-dev libmpfr-dev libmpc-dev
OTHER_PACKAGES: swig gcc libpcsclite-dev llvm-10 libllvm10 llvm-10-dev
jobs:
lint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: pip-${{ runner.os }}-${{ hashFiles('setup.py') }}
restore-keys: |
pip-${{ runner.os }}-
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: "3.9"
- name: Add picoscope repository
run: |
curl "https://labs.picotech.com/debian/dists/picoscope/Release.gpg.key" | sudo apt-key add
sudo echo "deb https://labs.picotech.com/debian/ picoscope main" | sudo tee /etc/apt/sources.list.d/picoscope.list
sudo apt-get update
- name: Install system dependencies
run: |
sudo apt-get install -y $PS_PACKAGES $OTHER_PACKAGES $GMP_PACKAGES
- name: Install numpy
run: |
pip install "numpy<1.25.1"
- name: Install picoscope bindings
run: |
git clone https://github.com/colinoflynn/pico-python && cd pico-python && python setup.py install && cd ..
git clone https://github.com/picotech/picosdk-python-wrappers && cd picosdk-python-wrappers && python setup.py install && cd ..
- name: Install dependencies
run: |
python -m pip install -U pip setuptools wheel
pip install -e ".[picoscope_sdk, picoscope_alt, chipwhisperer, smartcard, leia, gmp, test, dev]"
- name: Typecheck
run: |
make typecheck
- name: Codestyle
run: |
make codestyle-all
- name: Documentation coverage
run: |
make doc-coverage