-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add pyright + __status__ endpoint (#29) * wip * add pyright * clean up * simplify pyright * optimize build * fixes per code review --------- Co-authored-by: Aaron Peddle <[email protected]> * add basic tests (#30) Co-authored-by: Aaron Peddle <[email protected]> * Feature/track gpu status (#31) * track gpu status * fix potential deadlock with failed background task * add sequence number * update _read_event_chan to match previous API * fixes per code review --------- Co-authored-by: Aaron Peddle <[email protected]> * Erikk/ban 375 inference time to potassium (#33) * add idle time status * inference timeout * need to thread * improve tests * inference time not including cold boot time * small change * changed var name and set to None (instead of zero) if not set --------- Co-authored-by: Aaron Peddle <[email protected]> * version bump --------- Co-authored-by: Aaron Peddle <[email protected]> Co-authored-by: Aaron Peddle <[email protected]> Co-authored-by: Erik Kaunismäki <[email protected]>
- Loading branch information
1 parent
1bc43f4
commit 2959d77
Showing
11 changed files
with
361 additions
and
90 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Dockerfile |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Pyright Type Checking | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
type-check: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Build Docker image | ||
run: docker build . | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM python:3.8-slim-buster | ||
|
||
WORKDIR /potassium | ||
|
||
RUN pip install pyright pytest | ||
|
||
ADD ./potassium/requirements.txt ./potassium/requirements.txt | ||
|
||
RUN pip install -r ./potassium/requirements.txt | ||
|
||
ADD . . | ||
|
||
RUN pyright | ||
RUN pytest tests | ||
|
||
# tests are passing copy potassium to exports dir | ||
RUN mkdir /exports && cp -r ./potassium /exports/potassium | ||
|
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
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
Oops, something went wrong.