Skip to content

Commit

Permalink
Merge pull request #4 from intterra-io/enh/MSN-335
Browse files Browse the repository at this point in the history
[MSN-335] Airborne DSA Revival
  • Loading branch information
tomeldar authored Aug 21, 2023
2 parents d096882 + ac975c3 commit 86e9e12
Show file tree
Hide file tree
Showing 22 changed files with 617 additions and 151 deletions.
27 changes: 27 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## Ticket

[JIR-123](https://intterragroup.atlassian.net/browse/JIR-123)

## Background

What's the intent of this PR? What problem does it solve?

What's the scope of the work?

## Code Review

### Points of Focus

What should reviewers pay particular attention to (new patterns implemented, questions about how something should work, other parts of the app impacted, etc.)?

### Test Plan

Describe how reviewers should know your code works as expected.

1. Do this.
2. Look at that.
3. Done!

## Optional Fun

Add a GIF indicating how the PR makes you feel
36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Builds

on:
push:
tags:
- "v*"

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.x

- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools pyinstaller
python -m pip install .
- name: Build executable
run: |
pyinstaller --onefile main.py -n airborne-dsa
- name: Upload executable
uses: svenstaro/upload-release-action@2.7.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/airborne-dsa.exe
asset_name: airborne-dsa-windows-amd64.exe
tag: ${{ github.ref }}
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Tests

on:
pull_request:
branches:
- main

jobs:
test:
name: Run Tests
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.x

- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip3 install .
- name: Run tests
run: python3 -m unittest
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,8 @@ dmypy.json
# Cython debug symbols
cython_debug/

*.txt
*.txt

# Custom
missions
config.json
3 changes: 1 addition & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"python.linting.pylintEnabled": true,
"python.linting.enabled": true
"python.analysis.typeCheckingMode": "basic"
}
31 changes: 24 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,31 @@
# airborne-dsa-lite
Data shipping script for airborne products

Data shipping script for airborne products

## Local Development

### Prerequisites

- Python 3 installed
- Python 3 venv installed
- `python3 -m venv env`
- `source env/bin/activate`
- `python3 -m pip install --upgrade pip setuptools pyinstaller`

### Running locally

## Getting started
* Make sure you have python 3 installed
* `pip install awscli boto3`
* `aws configure`
* Set the correct bucket name in `settings.py`

Run: `python main.py` or `intterra-airborne-dsa.bat`
- `source env/bin/activate`
- `python3 -m pip install -e .`
- `python3 main.py`

For running locally, add "storageMode": "local" to config.json

## Generating build

Drop KMLs or tifs (*.tif and *.tiff) into this directory
- `pyinstaller main.py --onefile -n airborne-dsa`

## Running unit tests

- `python3 -m unittest`
2 changes: 0 additions & 2 deletions intterra-airborne-dsa.bat

This file was deleted.

Loading

0 comments on commit 86e9e12

Please sign in to comment.