-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #431 from baobabsoluciones/development
Development
- Loading branch information
Showing
15 changed files
with
95 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,7 @@ jobs: | |
uses: jungwinter/split@v2 | ||
id: split | ||
with: | ||
msg : ${{ github.ref_name}} | ||
msg : ${{ github.ref_name }} | ||
separator: "w" | ||
- name: Notify slack channel | ||
uses: slackapi/[email protected] | ||
|
@@ -52,8 +52,9 @@ jobs: | |
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }} | ||
- name: Tag published version for docker hub trigger | ||
run: | | ||
sleep 30s | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "cornflow" | ||
git tag -a v${{ steps.split.outputs_1}} -m "Published cornflow version v${{ steps.split.outputs._1 }}" | ||
git push origin v${{ steps.split.outputs_1}} | ||
git tag -a v${{ steps.split.outputs._1 }} -m "Published cornflow version v${{ steps.split.outputs._1 }}" | ||
git push origin v${{ steps.split.outputs._1 }} | ||
git push --delete origin ${{ github.ref_name }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
# Full imports | ||
import os | ||
|
||
import cornflow_client as cf | ||
from cornflow_core.shared import db | ||
|
||
# External libraries | ||
from flask import current_app | ||
from flask_testing import LiveServerTestCase | ||
|
||
# Internal modules | ||
from cornflow.app import create_app | ||
from cornflow.models import UserRoleModel | ||
from cornflow.commands.access import access_init_command | ||
from cornflow.commands.dag import register_deployed_dags_command_test | ||
from cornflow.commands.permissions import register_dag_permissions_command | ||
from cornflow.models import UserRoleModel | ||
from cornflow.shared.const import ADMIN_ROLE, SERVICE_ROLE | ||
from cornflow_core.shared import db | ||
from cornflow.tests.const import PREFIX | ||
|
||
|
||
|
@@ -52,6 +54,13 @@ def setUp(self, create_all=True): | |
register_dag_permissions_command( | ||
open_deployment=current_app.config["OPEN_DEPLOYMENT"], verbose=False | ||
) | ||
os.environ["CORNFLOW_SERVICE_USER"] = "service_user" | ||
|
||
self.create_service_user( | ||
dict( | ||
username="service_user", pwd="Airflow_test_password1", email="[email protected]" | ||
) | ||
) | ||
|
||
def tearDown(self): | ||
db.session.remove() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
|
||
setuptools.setup( | ||
name="cornflow", | ||
version="1.0.1", | ||
version="1.0.2", | ||
author="baobab soluciones", | ||
author_email="[email protected]", | ||
description="Cornflow is an open source multi-solver optimization server with a REST API built using flask.", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
version 1.0.11 | ||
---------------- | ||
|
||
- released: 2023-03-17 | ||
- description: change the way airflow api behaves doing the is_alive check. | ||
- changelog: | ||
- change the way airflow api behaves doing the is_alive check. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
|
||
setuptools.setup( | ||
name="cornflow-client", | ||
version="1.0.10", | ||
version="1.0.11", | ||
author="baobab soluciones", | ||
author_email="[email protected]", | ||
description="Client to connect to a cornflow server", | ||
|
@@ -24,7 +24,7 @@ | |
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Operating System :: OS Independent", | ||
"Development Status :: 3 - Alpha", | ||
"Development Status :: 5 - Production/Stable", | ||
], | ||
python_requires=">=3.7", | ||
include_package_data=True, | ||
|