-
Notifications
You must be signed in to change notification settings - Fork 2
60 lines (47 loc) · 1.24 KB
/
tests.yaml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
tests:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: "3.9"
cache: "pip"
- name: Install dependencies
run: |
sudo apt install libyaml-0-2
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with Pylama
run: pylama
- name: Check format with Black
run: black --check --diff .
- name: Check format with isort
run: isort --check --diff .
- name: Test with Python's unittest
run: python -m unittest
- name: Test building pypi package
run: python -m build
- name: Test building sphinx docs
run: make -C docs html
- name: Test installed scripts
run: |
pip install dist/*.whl
oresat-configs > /dev/null
oresat-gen-fw-files c3
oresat-gen-dcf c3
oresat-print-od c3 > /dev/null
oresat-gen-xtce
oresat-configs cards > /dev/null
oresat-configs pdo c3 --list > /dev/null
pip uninstall -y oresat-configs