Update star_tracker_service.py #13
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: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone oresat-cfc repository | |
uses: actions/checkout@v2 | |
- name: Clone oresat-configs repository | |
uses: actions/checkout@v2 | |
with: | |
repository: oresat/oresat-configs | |
path: resources/oresat-configs | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
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 linux dependencies | |
run: | | |
sudo apt install swig | |
- name: Install Python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Build beast | |
working-directory: oresat_star_tracker/beast | |
run: make | |
- 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 |