Skip to content

Commit

Permalink
Merge pull request #125 from adamtheturtle/rm-all-extras
Browse files Browse the repository at this point in the history
Try to get underline to work even on the 10th+ release of the day
  • Loading branch information
adamtheturtle authored Oct 8, 2024
2 parents 8d2ba94 + 225a1d8 commit b9fac04
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,19 @@ jobs:
run: |
# We run tests against "." and not the tests directory as we test the README
# and documentation.
uv run --all-extras --python=${{ matrix.python-version }} pytest -s -vvv --cov-fail-under=60 --cov=src/ --cov=tests . --cov-report=xml
uv run --extra=dev pytest -s -vvv --cov-fail-under=60 --cov=src/ --cov=tests . --cov-report=xml
if: runner.os == 'Windows'
env:
UV_PYTHON: ${{ matrix.python-version }}

- name: "Run tests not-Windows"
run: |
# We run tests against "." and not the tests directory as we test the README
# and documentation.
uv run --all-extras --python=${{ matrix.python-version }} pytest -s -vvv --cov-fail-under=100 --cov=src/ --cov=tests . --cov-report=xml
uv run --extra=dev pytest -s -vvv --cov-fail-under=100 --cov=src/ --cov=tests . --cov-report=xml
if: runner.os != 'Windows'
env:
UV_PYTHON: ${{ matrix.python-version }}

- name: "Upload coverage to Codecov"
uses: "codecov/codecov-action@v4"
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,18 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Get the changelog underline
id: changelog_underline
run: |
underline="$(echo "${{ steps.calver.outputs.release }}" | tr -c '\n' '-')"
echo "underline=${underline}" >> "$GITHUB_OUTPUT"
- name: "Update changelog"
uses: jacobtomlinson/gha-find-replace@v3
with:
find: "Next\n----"
replace: "Next\n----\n\n${{ steps.calver.outputs.release }}\n------------"
replace: "Next\n----\n\n${{ steps.calver.outputs.release }}\n${{ steps.changelog_underline.outputs.underline }}"
include: "CHANGELOG.rst"
regex: false

Expand Down

0 comments on commit b9fac04

Please sign in to comment.