Skip to content

Commit 4b445a2

Browse files
authored
Merge pull request #157 from galaxyproject/add_github_action
Added github action for tests and use cloudbridge full package
2 parents d32b0f8 + c6c86e0 commit 4b445a2

File tree

9 files changed

+47
-51
lines changed

9 files changed

+47
-51
lines changed

.github/workflows/tests.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Run tests
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
jobs:
10+
build:
11+
name: tests
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: true
15+
steps:
16+
- name: 'Set up Python'
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: '3.8'
20+
- uses: actions/checkout@v2
21+
- run: pip install tox
22+
- run: pip install tox-docker>=2.0.0a3
23+
- run: pip install coveralls
24+
- run: tox -e py38-integration
25+
- run: coveralls -v --service=github
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.travis.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
CloudMan is a cloud infrastructure and application manager, primarily for Galaxy.
22

3+
.. image:: https://github.com/galaxyproject/cloudman/actions/workflows/tests.yaml/badge.svg
4+
:target: https://github.com/galaxyproject/cloudman/actions/workflows/tests.yaml
5+
:alt: Github Build Status
6+
37
.. image:: https://coveralls.io/repos/github/galaxyproject/cloudman/badge.svg?branch=master
48
:target: https://coveralls.io/github/galaxyproject/cloudman?branch=master
59
:alt: Test Coverage Report
610

7-
.. image:: https://travis-ci.org/galaxyproject/cloudman.svg?branch=master
8-
:target: https://travis-ci.org/galaxyproject/cloudman
9-
:alt: Travis Build Status
10-
1111
Installation
1212
------------
1313
CloudMan is intended to be installed via the `CloudMan Helm chart`_.

cloudman/cloudman/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
1. Add an import: from other_app.views import Home
1212
2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home')
1313
Including another URLconf
14-
1. Import the include() function: from django.conf.urls import url, include
14+
1. Import the include() function: from django.urls import re_path, include
1515
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
1616
"""
1717
from django.conf import settings

cloudman/clusterman/tests/test_cluster_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,7 @@ def test_scale_up_unschedulable(self):
13011301
# Ensure that the created node has the correct size
13021302
vm_types = self._get_cluster_node_vm_types(cluster_id)
13031303
self.assertEqual(len(vm_types), 1)
1304-
self.assertTrue("i3en.24xlarge" in vm_types)
1304+
self.assertTrue("i3en.24xlarge" in vm_types or 'dl1.24xlarge' in vm_types)
13051305

13061306
def test_scale_up_allowed_vm_types(self):
13071307
# create the parent cluster

cloudman/clusterman/urls.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""CloudMan Create URL configuration."""
22

3-
from django.conf.urls import include
4-
from django.conf.urls import url
3+
from django.urls import include
4+
from django.urls import re_path
55

66
from . import views
77
from djcloudbridge.drf_routers import HybridDefaultRouter
@@ -28,6 +28,6 @@
2828

2929
cluster_regex_pattern = r'^'
3030
urlpatterns = [
31-
url(r'^', include(router.urls)),
32-
url(cluster_regex_pattern, include(cluster_router.urls))
31+
re_path(r'^', include(router.urls)),
32+
re_path(cluster_regex_pattern, include(cluster_router.urls))
3333
]

cloudman/helmsman/urls.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""CloudMan Create URL configuration."""
22

3-
from django.conf.urls import include
4-
from django.conf.urls import url
3+
from django.urls import include
4+
from django.urls import re_path
55

66
from . import views
77
from djcloudbridge.drf_routers import HybridDefaultRouter
@@ -20,5 +20,5 @@
2020
app_name = "helmsman"
2121

2222
urlpatterns = [
23-
url(r'^', include(router.urls)),
23+
re_path(r'^', include(router.urls)),
2424
]

cloudman/projman/urls.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""CloudMan Create URL configuration."""
22

3-
from django.conf.urls import include
4-
from django.conf.urls import url
3+
from django.urls import include
4+
from django.urls import re_path
55

66
from . import views
77

@@ -22,6 +22,6 @@
2222

2323
cluster_regex_pattern = r'^'
2424
urlpatterns = [
25-
url(r'^', include(router.urls)),
26-
url(cluster_regex_pattern, include(project_router.urls))
25+
re_path(r'^', include(router.urls)),
26+
re_path(cluster_regex_pattern, include(project_router.urls))
2727
]

requirements_test.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ paramiko
55
sqlalchemy
66
# required by moto
77
sshpubkeys
8-
git+https://github.com/CloudVE/moto@fix_unknown_instance_type
9-
git+https://github.com/CloudVE/cloudbridge
8+
git+https://github.com/CloudVE/cloudbridge#egg=cloudbridge[dev]
109
git+https://github.com/CloudVE/djcloudbridge
1110
# Leave cloudlaunch-cli before cloudlaunch-server due to coreapi version mismatch
1211
git+https://github.com/CloudVE/cloudlaunch-cli
1312
git+https://github.com/galaxyproject/cloudlaunch
13+
pytz>=2022.2.1
14+
tzdata>=2022.2
1415
-r requirements.txt
1516
-e ".[test]"

0 commit comments

Comments
 (0)