From a049ea69fd3c94904e769c12fb6b4a44e65bc8cd Mon Sep 17 00:00:00 2001 From: Marcel Stimberg Date: Thu, 12 Oct 2023 10:37:13 +0200 Subject: [PATCH 1/3] chore: fix action for deployment a tag does not count as a push to branch `main`, so the action did not get triggered --- .github/workflows/deploy.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8958f83..ae20711 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,10 +1,9 @@ name: Fly Deploy -on: - push: - branches: - - main +on: [push] + jobs: deploy_staging: # Always deploy to staging + if: github.repository == 'OCNS/simselect' && github.ref == 'refs/heads/main' name: Deploy app to simselect-dev runs-on: ubuntu-latest steps: From 27139d01a6030981f113f524bbbd229481b1c1a7 Mon Sep 17 00:00:00 2001 From: Marcel Stimberg Date: Thu, 12 Oct 2023 10:38:49 +0200 Subject: [PATCH 2/3] chore: update version to 0.2.1 --- src/project_browser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/project_browser.py b/src/project_browser.py index b1cc251..ba925e6 100644 --- a/src/project_browser.py +++ b/src/project_browser.py @@ -11,7 +11,7 @@ import data -__version__ = "0.2.0" +__version__ = "0.2.1" REPO_URL = "https://github.com/OCNS/simselect" DATA_FOLDER = "simtools" From 8f0266727e714e0fe425ca98cf5540a04fa83847 Mon Sep 17 00:00:00 2001 From: Marcel Stimberg Date: Thu, 12 Oct 2023 10:39:53 +0200 Subject: [PATCH 3/3] chore: update test workflow to set Python version and cache dependencies --- .github/workflows/test.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index de1251f..ae0d544 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,6 +8,10 @@ jobs: steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 + with: + python-version: '3.11' + cache: 'pip' + cache-dependency-path: requirements.txt - name: Install dependencies run: python -m pip install -r requirements.txt -r requirements-dev.txt - name: Run pre-commit hooks