Skip to content

Commit

Permalink
fix: workflow missing env var
Browse files Browse the repository at this point in the history
  • Loading branch information
mgvalverde committed Aug 30, 2024
1 parent 0412d73 commit 787ca61
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:

env:
POETRY_VERSION: "1.8.3"
PCKG_SRC: "omegaconf_cloud_resolvers"


defaults:
Expand Down Expand Up @@ -42,13 +43,13 @@ jobs:
run: poetry install --all-extras

- name: Lint with ruff
run: poetry run ruff check ${{ env.PCKG_SRC }}
run: poetry run ruff check . --exit-non-zero-on-fix --show-fixes

- name: Lint with bandit
run: poetry run bandit -r ${{ env.PCKG_SRC }} --quiet
run: poetry run bandit -r . -x "./.venv/*,./tests/*,.svn,CVS,.bzr,.hg,.git,__pycache__,.tox,.eggs,*.egg" --quiet

- name: Test with pytest
run: poetry run pytest tests/ --cov=omegaconf-cloud-resolvers --cov-report=xml # store in cov
run: poetry run pytest tests/ --cov=${{env.PCKG_SRC}} --cov-report=xml # store in cov

- name: Archive code coverage html report #
if: ${{ matrix.python-version == '3.9'}}
Expand Down
107 changes: 106 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ gcp = ["google-cloud-secret-manager"]
moto = { extras = ["secretsmanager", "ssm"], version = "^5.0.13" }
pytest-mock = "^3.14.0"
pytest = "^8.3.2"
pytest-cov = "^5.0.0"
ruff = "^0.6.2"
bandit = "^1.7.9"
mkdocs = "^1.6.0"
Expand Down

0 comments on commit 787ca61

Please sign in to comment.