From b7e3c06c320bebc8f8c2537f04a70a2819663404 Mon Sep 17 00:00:00 2001 From: Spiros Maggioros Date: Tue, 19 Nov 2024 01:25:26 +0200 Subject: [PATCH] Added dependabot and macos/ubuntu build tests --- .DS_Store | Bin 0 -> 6148 bytes .github/dependabot.yml | 16 +++++++++++++++ .github/workflows/macos-build.yml | 30 +++++++++++++++++++++++++++++ .github/workflows/ubuntu-build.yml | 30 +++++++++++++++++++++++++++++ 4 files changed, 76 insertions(+) create mode 100644 .DS_Store create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/macos-build.yml create mode 100644 .github/workflows/ubuntu-build.yml diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..fd67311ca48dda9002628e5caafb87f288cb8781 GIT binary patch literal 6148 zcmeHKu};G<5IsW#5gn*lpj$>JQ2!uQVS@p6U_k888@M(v7G@z05{jSGT5cXz$Ng73+VcJ2=Z@f)!8rkEX+u!}N zKkFCPhK*a+Vs$n)^=V8UXLeH8<%}YSr`Nk9%VA-hB%L#<&T{zZ^^a=clh74q@KcKE z9Nwo3hgY1xfLBFkk>B&l_T{G0s4{!b^ZRUv?|@$$tx!Yb>@M~fxjl>~ zv-jtWQBgX{*zH(f e@K(G9*M`1;FMy%N+#n(_`4P}ENFxgTr~>b@Z;es_ literal 0 HcmV?d00001 diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..1016bcc --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,16 @@ +# The documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: "maven" + directory: "/" # Location of package manifests + schedule: + interval: "weekly" + + - package-ecosystem: "github-actions" + # Workflow files stored in the + # default location of `.github/workflows` + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/macos-build.yml b/.github/workflows/macos-build.yml new file mode 100644 index 0000000..920ccf9 --- /dev/null +++ b/.github/workflows/macos-build.yml @@ -0,0 +1,30 @@ +name: MacOS Build + +# workflow dispatch has been added for testing purposes +on: [push, pull_request, workflow_dispatch] + +jobs: + build: + runs-on: ["macos-latest"] + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + - name: Set-up miniconda for macos and ubuntu + uses: conda-incubator/setup-miniconda@v2 + with: + auto-update-conda: true + python-version: 3.12 + miniconda-version: "latest" + - name: Create conda env + run: conda create -n NCP python=3.12 + - name: Install pip + run: conda run -n NCP conda install pip + - name: Build DLWMLS from source + run: | + python -m pip cache purge + pip install setuptools twine wheel + pip install -r requirements.txt + python3 -m pip install -e . diff --git a/.github/workflows/ubuntu-build.yml b/.github/workflows/ubuntu-build.yml new file mode 100644 index 0000000..cec5638 --- /dev/null +++ b/.github/workflows/ubuntu-build.yml @@ -0,0 +1,30 @@ +name: Ubuntu Build + +# workflow dispatch has been added for testing purposes +on: [push, pull_request, workflow_dispatch] + +jobs: + build: + runs-on: ["ubuntu-latest"] + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + - name: Set-up miniconda for macos and ubuntu + uses: conda-incubator/setup-miniconda@v2 + with: + auto-update-conda: true + python-version: 3.12 + miniconda-version: "latest" + - name: Create conda env + run: conda create -n NCP python=3.12 + - name: Install pip + run: conda run -n NCP conda install pip + - name: Build DLWMLS from source + run: | + python -m pip cache purge + pip install setuptools twine wheel + pip install -r requirements.txt + python3 -m pip install -e .