From 6891d44d0a2d51bf156a12979505fc7fcc42e3a9 Mon Sep 17 00:00:00 2001 From: aleksejaku <144852141+aleksejaku@users.noreply.github.com> Date: Fri, 13 Oct 2023 23:54:17 +0200 Subject: [PATCH 1/4] Create python-package-conda.yml --- .github/workflows/python-package-conda.yml | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/python-package-conda.yml diff --git a/.github/workflows/python-package-conda.yml b/.github/workflows/python-package-conda.yml new file mode 100644 index 0000000..384f9b7 --- /dev/null +++ b/.github/workflows/python-package-conda.yml @@ -0,0 +1,34 @@ +name: Python Package using Conda + +on: [push] + +jobs: + build-linux: + runs-on: ubuntu-latest + strategy: + max-parallel: 5 + + steps: + - uses: actions/checkout@v3 + - name: Set up Python 3.10 + uses: actions/setup-python@v3 + with: + python-version: '3.10' + - name: Add conda to system path + run: | + # $CONDA is an environment variable pointing to the root of the miniconda directory + echo $CONDA/bin >> $GITHUB_PATH + - name: Install dependencies + run: | + conda env update --file environment.yml --name base + - name: Lint with flake8 + run: | + conda install flake8 + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | + conda install pytest + pytest From 327b3c2b57dce5f1bc8ccea248d469090399c270 Mon Sep 17 00:00:00 2001 From: aleksejaku <144852141+aleksejaku@users.noreply.github.com> Date: Sun, 22 Oct 2023 21:58:58 +0200 Subject: [PATCH 2/4] Create aleks --- aleks | 1 + 1 file changed, 1 insertion(+) create mode 100644 aleks diff --git a/aleks b/aleks new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/aleks @@ -0,0 +1 @@ + From 08702edeebf3007144fb6d2b9299257c8d194aed Mon Sep 17 00:00:00 2001 From: aleksejaku <144852141+aleksejaku@users.noreply.github.com> Date: Sun, 22 Oct 2023 22:03:57 +0200 Subject: [PATCH 3/4] Create main.yml --- .github/workflows/main.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..4e56ec9 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,17 @@ +- name: Cache + uses: actions/cache@v3.3.2 + with: + # A list of files, directories, and wildcard patterns to cache and restore + path: + # An explicit key for restoring and saving the cache + key: + # An ordered list of keys to use for restoring stale cache if no cache hit occurred for key. Note `cache-hit` returns false in this case. + restore-keys: # optional + # The chunk size used to split up large files during upload, in bytes + upload-chunk-size: # optional + # An optional boolean when enabled, allows windows runners to save or restore caches that can be restored or saved respectively on other platforms + enableCrossOsArchive: # optional, default is false + # Fail the workflow if cache entry is not found + fail-on-cache-miss: # optional, default is false + # Check if a cache entry exists for the given input(s) (key, restore-keys) without downloading the cache + lookup-only: # optional, default is false From a25a1111d1c81b138db47225de90212d6a688f13 Mon Sep 17 00:00:00 2001 From: aleksejaku <144852141+aleksejaku@users.noreply.github.com> Date: Mon, 6 Nov 2023 16:40:35 +0100 Subject: [PATCH 4/4] Create devcontainer.json --- .devcontainer/devcontainer.json | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..ad93c14 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,5 @@ +{ + "image": "mcr.microsoft.com/devcontainers/universal:2", + "features": { + } +}