Skip to content

Commit

Permalink
Merge pull request #113 from grycap/devel
Browse files Browse the repository at this point in the history
Move tests to actions
  • Loading branch information
micafer committed Feb 15, 2024
2 parents e0da5fc + 753eb47 commit 2f45a05
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Test EC3

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out the codebase.
uses: actions/checkout@v4

- name: Set up Python 3.
uses: actions/setup-python@v5
with:
python-version: '3.10'

- name: Install dependencies
run: python -m pip install mock ply requests PyYAML jsonschema

- name: Unit tests
run: python -m unittest discover -v -s test -p '*.py'
3 changes: 3 additions & 0 deletions IM2/radl/radl_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
"items": {
"type": "array",
"items" : { "$ref": "#/definitions/contextualizeItem" }
},
"options": {
"type": "object"
}
},
"additionalProperties": false,
Expand Down
1 change: 0 additions & 1 deletion test/test_radl.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,6 @@ def test_contextualize_options(self):
self.assertEqual(r.get(contextualize()).options['ansible_version'].operator, '<=')

radl_json = dump_radl_json(r)
print(radl_json)
r = parse_radl_json(radl_json)
r.check()
self.assertEqual(len(r.get(contextualize()).options), 1)
Expand Down

0 comments on commit 2f45a05

Please sign in to comment.