From 038733ca08aa9269397d9409a2db904b66fff430 Mon Sep 17 00:00:00 2001 From: Jan Philip Wahle Date: Tue, 4 Oct 2022 15:10:31 +0200 Subject: [PATCH 1/2] feat(PATCH): Add Dockerfile for system independent builds --- .github/workflows/main.yml | 3 +++ Dockerfile | 10 ++++++++++ 2 files changed, 13 insertions(+) create mode 100644 Dockerfile diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6fcdca3..c0e4f42 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,3 +26,6 @@ jobs: - name: ๐Ÿงช Run tests run: | poetry run poe alltest + + - name: ๐Ÿณ Build docker image + run: docker build . diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d15a25e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM python:3.8 + +WORKDIR /cs-insights-crawler +COPY . /cs-insights-crawler + +RUN apt-get update && apt-get install liblapack-dev libblas-dev gfortran python3-venv -y +RUN pip install poetry +RUN poetry install --no-dev + +CMD [ "poetry", "run", "cli", "main", "--s2_use_papers", "--s2_use_abstracts", "--s2_use_authors", "--s2_filter_dblp" ] From 6a8e015cf10b8f14cc26fe74828f9afddf0c60e5 Mon Sep 17 00:00:00 2001 From: Jan Philip Wahle Date: Tue, 4 Oct 2022 15:21:17 +0200 Subject: [PATCH 2/2] Python@3.10 => Python@3.8 --- .github/workflows/main.yml | 2 +- .github/workflows/release.yml | 4 ++-- mypy.ini | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c0e4f42..555824c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/setup-python@v2 with: - python-version: "3.10" + python-version: 3.8 - name: ๐Ÿ’ฟ Install poetry uses: snok/install-poetry@v1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 557f0f6..739aeae 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/setup-python@v2 with: - python-version: "3.10" + python-version: 3.8 - name: ๐Ÿ’ฟ Install poetry uses: snok/install-poetry@v1 @@ -39,7 +39,7 @@ jobs: - uses: actions/setup-python@v2 with: - python-version: "3.10" + python-version: 3.8 - name: ๐Ÿท Bump version and push tag id: tag_version diff --git a/mypy.ini b/mypy.ini index 303285e..d7d4aca 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1,5 +1,5 @@ [mypy] -python_version = 3.10 +python_version = 3.8 warn_return_any = True warn_unused_configs = True disallow_untyped_defs = True