Skip to content

Commit

Permalink
WIP: Ubuntu build (#7)
Browse files Browse the repository at this point in the history
* Build on ubuntu

* macos 12 explicit build

* macos 12 explicit build

* macos 12 explicit build

* change timestamp

* microseconds
  • Loading branch information
pauloesteban committed Jul 1, 2022
1 parent f278f76 commit b6c3034
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, macos-10.15, windows-latest]
os: [macos-12, macos-latest, macos-10.15, windows-latest, ubuntu-latest]

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: 3.9
python-version: "3.10"
- name: Install dependencies
run: |
pip install -U pip setuptools wheel
Expand Down
2 changes: 1 addition & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def int_list_from_bytearray(data: ByteString) -> Array:
A list of integers representing the timestamp and coordinates values
"""
step = 2
timestamp = [uint16_from_bytes(data[0:step])]
timestamp = [datetime.now().strftime("%Y%m%d_%H%M%S.%f"),]
sensor_data = [int16_from_bytes(data[i:i+step]) for i in range(step, len(data) - 1, step)]

return timestamp + sensor_data
Expand Down

0 comments on commit b6c3034

Please sign in to comment.