-
Notifications
You must be signed in to change notification settings - Fork 179
38 lines (36 loc) · 1 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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
- name: Run unittests
run: py.test --cov .
env:
NASA_USERNAME: ${{ secrets.NASA_USERNAME }}
NASA_PASSWORD: ${{ secrets.NASA_PASSWORD }}
- name: Test install
run: |
python setup.py 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