6 Commits

Author SHA1 Message Date
hasslesstech d215e527ed add lines
Test Agent / test-agent-run (push) Successful in 5m25s
2026-03-03 18:54:42 +02:00
hasslesstech 340706c7e5 test commit
Test Agent / test-agent-run (push) Successful in 5m25s
2026-02-26 16:10:13 +02:00
hasslesstech ff502c3be8 test commit
Test Agent / test-agent-run (push) Has been cancelled
2026-02-26 16:09:17 +02:00
hasslesstech ad976c8074 test commit
Test Agent / test-agent-run (push) Has been cancelled
2026-02-26 16:07:03 +02:00
hasslesstech 91cca10a04 test commit
Test Agent / test-agent-run (push) Has been cancelled
2026-02-26 16:06:47 +02:00
bacant150 dbd6e88de8 Remove unnecessary rewind after file open
Test Agent / test-agent-run (push) Successful in 18s
2026-02-26 15:35:01 +02:00
3 changed files with 14 additions and 4 deletions
+5 -1
View File
@@ -1,11 +1,15 @@
name: Test Agent name: Test Agent
on: [push, workflow_dispatch] on: [push, workflow_dispatch]
concurrency:
cancel-in-progress: false
jobs: jobs:
test-agent-run: test-agent-run:
runs-on: arch-x86_64 runs-on: arch-x86_64
steps: steps:
- name: Fetch the repository - name: Fetch the repository
run: git clone --branch ${{ gitea.ref_name }} --depth 1 ${{ gitea.server_url }}/${{ gitea.repository }} run: git clone --revision ${{ gitea.sha }} --depth 1 ${{ gitea.server_url }}/${{ gitea.repository }}
- name: Build containers - name: Build containers
run: docker-compose -f docker-compose-test.yaml build run: docker-compose -f docker-compose-test.yaml build
+5 -1
View File
@@ -9,4 +9,8 @@ RUN pip install -r requirements.txt
# copy the content of the local src directory to the working directory # copy the content of the local src directory to the working directory
COPY src/ . COPY src/ .
# command to run on container start # command to run on container start
CMD ["python", "main.py"] CMD ["python", "main.py"]
+4 -2
View File
@@ -74,8 +74,10 @@ class FileDatasource:
self._acc_reader = csv.reader(self._acc_f, skipinitialspace=True) self._acc_reader = csv.reader(self._acc_f, skipinitialspace=True)
self._gps_reader = csv.reader(self._gps_f, skipinitialspace=True) self._gps_reader = csv.reader(self._gps_f, skipinitialspace=True)
self._rewind_acc() # File pointer is already at 0 right after open(), so no need to rewind here.
self._rewind_gps() # Skip header row once.
next(self._acc_reader, None)
next(self._gps_reader, None)
def _close_files(self) -> None: def _close_files(self) -> None:
for f in (self._acc_f, self._gps_f): for f in (self._acc_f, self._gps_f):