Skip to content

Commit

Permalink
Add github action
Browse files Browse the repository at this point in the history
  • Loading branch information
wvangeit committed Apr 16, 2024
1 parent 704122d commit 55ac904
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test

on:
pull_request:
push:
branches:
- master
workflow_call:

jobs:
test:
name: Test for python ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.10", "3.11"]
steps:
- name: Check out code
uses: actions/checkout@v4
- name: setup docker buildx
id: buildx
uses: docker/setup-buildx-action@v3
with:
driver: docker-container
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Make build
run: make build
- name: Make run-local
run: make run-local

4 changes: 3 additions & 1 deletion docker_scripts/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ def main():

class HTTPHandler(http.server.SimpleHTTPRequestHandler):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs, directory=http_dir_path)
super().__init__(
*args, **kwargs, directory=http_dir_path.resolve()
)

maprunner = MapRunner(
input_path, output_path, polling_interval=POLLING_INTERVAL
Expand Down

0 comments on commit 55ac904

Please sign in to comment.