make laika uv installable #879
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: tests | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
sudo apt install libcurl4-openssl-dev libssl-dev | |
pip install -r requirements_examples.txt pytest-cov pytest ruff parameterized | |
- name: Run unittests | |
run: py.test --cov . | |
env: | |
NASA_USERNAME: ${{ secrets.NASA_USERNAME }} | |
NASA_PASSWORD: ${{ secrets.NASA_PASSWORD }} | |
- name: Test install | |
run: | | |
pip3 install . | |
cd / && python -c 'import laika' | |
lint: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Run static analysis | |
run: | | |
sudo apt update && sudo apt-get install cppcheck | |
pip install pre-commit==3.3.3 ruff | |
pre-commit run --all |