Skip to content

Commit

Permalink
Merge pull request #1 from dinkelk/main
Browse files Browse the repository at this point in the history
Updating Github Actions
  • Loading branch information
dinkelk authored Nov 20, 2023
2 parents 9ea8df4 + 706ae17 commit b4d66ca
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 19 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build_user_guide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ jobs:
name: build_user_guide
runs-on: ubuntu-latest
container:
image: dinkelk/adamant:example-latest
credentials:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
image: ghcr.io/lasp/adamant:example-latest
env:
INSTALL_DIR: /home/user/env
ADAMANT_DIR: ${{ github.workspace }}
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/publish_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ jobs:
name: publish_all
runs-on: ubuntu-latest
container:
image: dinkelk/adamant:example-latest
credentials:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
image: ghcr.io/lasp/adamant:example-latest
env:
INSTALL_DIR: /home/user/env
ADAMANT_DIR: ${{ github.workspace }}
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/style_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ jobs:
name: style_all
runs-on: ubuntu-latest
container:
image: dinkelk/adamant:example-latest
credentials:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
image: ghcr.io/lasp/adamant:example-latest
env:
INSTALL_DIR: /home/user/env
ADAMANT_DIR: ${{ github.workspace }}
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/test_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ jobs:
name: test_all
runs-on: ubuntu-latest
container:
image: dinkelk/adamant:example-latest
credentials:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
image: ghcr.io/lasp/adamant:example-latest
env:
INSTALL_DIR: /home/user/env
ADAMANT_DIR: ${{ github.workspace }}
Expand Down
3 changes: 2 additions & 1 deletion gen/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@ def _loadYaml(yaml_text):
warnings.simplefilter("ignore", yaml.error.UnsafeLoaderWarning)
# with open(self.full_filename, 'r') as stream:
try:
return yaml.load(yaml_text, Loader=yaml.RoundTripLoader)
yml = yaml.YAML(typ='rt')
return yml.load(yaml_text)
# import sys
# sys.stderr.write(str(self.data) + "\n")
# sys.stderr.write(str(type(self.data)) + "\n")
Expand Down
2 changes: 1 addition & 1 deletion gen/models/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def inner(*args, **kwargs):
# Decorator which catches a model exception and addes
# a line number if the argument of the function contains
# an attribue "lc.line" which is the line number attribute
# of a rout trip loaded yaml dictionary from ruamel.yaml
# of a round trip loaded yaml dictionary from ruamel.yaml
def throw_exception_with_lineno(func):
def inner(*args, **kwargs):
try:
Expand Down
3 changes: 2 additions & 1 deletion redo/bin/yaml_sloc_counter.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ def _loadYaml(yaml_text):
import warnings

warnings.simplefilter("ignore", yaml.error.UnsafeLoaderWarning)
return yaml.load(yaml_text, Loader=yaml.RoundTripLoader)
yml = yaml.YAML(typ='rt')
return yml.load(yaml_text)

# Open and read the yaml file:
with open(yaml_file, "r") as f:
Expand Down

0 comments on commit b4d66ca

Please sign in to comment.