Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
Note the check-style job can be removed once
the pre-commit.ci bot is enabled
  • Loading branch information
WilliamJamieson committed Nov 11, 2023
1 parent 32bd6bb commit 4b8fcca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
with:
envs: |
- linux: check-style
- linux: check-security
- linux: check-build
test:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
Expand Down
15 changes: 4 additions & 11 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
check-{style,security,build}
check-{style,build}
test{,-warnings,-cov}-xdist
test-numpy{120,121,122}
test-{jwst,romancal}-xdist
Expand All @@ -19,17 +19,10 @@ envlist =
description = check code style, e.g. with ruff
skip_install = true
deps =
ruff
pre-commit
commands =
ruff . {posargs}

[testenv:check-security]
description = run bandit to check security compliance
skip_install = true
deps =
bandit>=1.7
commands =
bandit stcal -r -x src,tests
pre-commit install-hooks
pre-commit run {posargs:--color always --all-files --show-diff-on-failure}

[testenv:check-build]
description = check build sdist/wheel and a strict twine check for metadata
Expand Down

0 comments on commit 4b8fcca

Please sign in to comment.