Skip to content

Commit

Permalink
Fixes in workflow and pyproject (#657)
Browse files Browse the repository at this point in the history
  • Loading branch information
mauvilsa authored Dec 27, 2024
1 parent 2a9cacd commit 25dfa5a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,17 @@ jobs:
- run: |
pip install .[test,all]
pip uninstall -y argcomplete omegaconf pyyaml reconplogger responses ruyaml types-PyYAML
pytest
pytest --cov --cov-report=term --cov-report=xml --junit-xml=junit.xml
mv coverage.xml coverage_without_pyyaml.xml
mv junit.xml junit_without_pyyaml.xml
- uses: actions/upload-artifact@v4
with:
name: coverage_without_pyyaml
path: ./coverage_without_pyyaml
- uses: actions/upload-artifact@v4
with:
name: junit_without_pyyaml
path: ./junit_without_pyyaml

build-package:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -204,7 +214,7 @@ jobs:

codecov:
runs-on: ubuntu-latest
needs: [linux, pydantic-v1]
needs: [linux, pydantic-v1, without-pyyaml]
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
Expand All @@ -223,7 +233,7 @@ jobs:

sonarcloud:
runs-on: ubuntu-latest
needs: [linux, pydantic-v1]
needs: [linux, pydantic-v1, without-pyyaml]
steps:
- uses: actions/checkout@v4
with:
Expand Down
5 changes: 1 addition & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
requires = ["setuptools"]
build-backend = "setuptools.build_meta"


[project]
name = "jsonargparse"
dynamic = ["version"]
Expand Down Expand Up @@ -121,14 +122,12 @@ maintainer = [
"twine>=4.0.2",
]


[project.urls]
Documentation-stable = "https://jsonargparse.readthedocs.io/en/stable/"
Documentation-latest = "https://jsonargparse.readthedocs.io/en/latest/"
Changes = "https://jsonargparse.readthedocs.io/en/stable/changelog.html"
GitHub = "https://github.com/omni-us/jsonargparse"
PyPI = "https://pypi.org/project/jsonargparse"
CircleCI = "https://circleci.com/gh/omni-us/jsonargparse"
SonarCloud = "https://sonarcloud.io/dashboard?id=omni-us_jsonargparse"
Codecov = "https://codecov.io/gh/omni-us/jsonargparse"

Expand All @@ -137,11 +136,9 @@ Codecov = "https://codecov.io/gh/omni-us/jsonargparse"
platforms = ["Any"]
packages = ["jsonargparse", "jsonargparse_tests"]


[tool.setuptools.dynamic]
version = {attr = "jsonargparse.__version__"}


[tool.setuptools.package-data]
jsonargparse = ["py.typed"]

Expand Down

0 comments on commit 25dfa5a

Please sign in to comment.