diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 77ab552..54c4184 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,7 +8,7 @@ on: jobs: publish: - if: github.repository == 'pytest-dev/pytest-base-url' + if: github.repository == 'pytest-dev/pytest-metadata' runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git a/src/pytest_metadata/plugin.py b/src/pytest_metadata/plugin.py index 1ec1071..978297c 100644 --- a/src/pytest_metadata/plugin.py +++ b/src/pytest_metadata/plugin.py @@ -94,6 +94,7 @@ def pytest_configure(config): config.stash[metadata_key].update( json.loads(config.getoption("metadata_from_json")) ) + if config.getoption("metadata_from_json_file"): with open(config.getoption("metadata_from_json_file"), "r") as json_file: config.stash[metadata_key].update(json.load(json_file))