-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (42 loc) · 1.16 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
name: tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Clone oresat-star-tracker repository
uses: actions/checkout@v3
- name: Clone oresat-configs repository
uses: actions/checkout@v3
with:
repository: oresat/oresat-configs
path: resources/oresat-configs
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: "3.9"
- name: Build and install oresat-configs
working-directory: resources/oresat-configs
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
python -m build
pip install dist/*.whl
- name: Clean up oresat-configs
run: rm -rf resources/oresat-configs
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Check format with Black
run: black --check --diff .
- name: Check format with isort
run: isort --check --diff .
- name: Test building pypi package
run: python -m build