Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Saransh-cpp committed Nov 25, 2024
1 parent a4df291 commit d64ce8c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 17 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,7 @@ jobs:
with:
fetch-depth: 0

- name: Build SDist and wheel
run: pipx run build

- uses: actions/upload-artifact@v4
with:
path: dist/*

- name: Check metadata
run: pipx run twine check dist/*
- uses: hynek/build-and-inspect-python-package@v2

publish:
needs: [dist]
Expand All @@ -40,4 +32,7 @@ jobs:
name: artifact
path: dist

- name: List distributions to be deployed
run: ls -l dist/

- uses: pypa/gh-action-pypi-publish@release/v1
12 changes: 4 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,16 @@ jobs:
allow-prereleases: true

- name: Install removestar (lite)
run: |
python -m pip install -e ".[dev]"
run: python -m pip install -e ".[dev]"

- name: Test removestar (lite)
run: |
pytest --cov=removestar . -vv
run: pytest --cov=removestar . -vv

- name: Install removestar (nb)
run: |
python -m pip install -e ".[dev,nb]"
run: python -m pip install -e ".[dev,nb]"

- name: Test removestar (nb)
run: |
pytest --cov=removestar . -vv
run: pytest --cov=removestar . -vv

- name: Upload coverage report
uses: codecov/[email protected]

0 comments on commit d64ce8c

Please sign in to comment.