-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #264 from callowayproject/254-color-code-warnings
Add better formatting to warnings
- Loading branch information
Showing
10 changed files
with
87 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,30 +22,27 @@ jobs: | |
- ubuntu-latest | ||
- windows-latest | ||
python-version: | ||
- "3.8" | ||
- "3.9" | ||
- "3.10" | ||
- "3.11" | ||
- "3.12" | ||
- "3.13" | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
- uses: ./.github/actions/setup-python-and-git | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Check git is working | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Testing Git" | ||
git --version | ||
git config --list | ||
- name: Check mercurial is working | ||
run: | | ||
echo -e '[ui]\nusername = Testing Mercurial<[email protected]>' > ~/.hgrc | ||
hg --version | ||
- name: Install test dependencies | ||
run: pip install '.[test]' | ||
- name: Install requirements | ||
shell: bash | ||
run: | | ||
uv sync -p 3.12 --group dev --group test | ||
- name: Test | ||
run: pytest --cov-report=xml | ||
run: uv run pytest --cov-report=xml | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v5 | ||
with: | ||
|
@@ -59,41 +56,37 @@ jobs: | |
release-test-pypi: | ||
name: Publish in-dev package to test.pypi.org | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.PAT }} | ||
ref: ${{ github.head_ref }} | ||
|
||
- uses: actions/setup-python@v5 | ||
- uses: ./.github/actions/setup-python-and-git | ||
with: | ||
python-version: '3.11' | ||
cache: 'pip' # caching pip dependencies | ||
python-version: "3.12" | ||
|
||
- name: Install requirements | ||
shell: bash | ||
run: | | ||
python -m pip install --disable-pip-version-check --no-python-version-warning build | ||
python -m pip install --disable-pip-version-check --no-python-version-warning -e . | ||
uv sync -p 3.12 --group dev | ||
- name: Set dev version | ||
shell: bash | ||
run: | | ||
export PR_NUMBER=$(gh pr view --json number -q .number || echo "") | ||
echo "PR_NUMBER=$PR_NUMBER" >> $GITHUB_ENV | ||
echo "::notice::PR_NUMBER is: ${PR_NUMBER}" | ||
bump-my-version bump dev bumpversion/__init__.py --no-commit --no-tag --no-configured-files -v | ||
env: | ||
GH_TOKEN: ${{ secrets.PAT }} | ||
uv run bump-my-version bump dev bumpversion/__init__.py --no-commit --no-tag --no-configured-files -v | ||
- name: Package | ||
shell: bash | ||
run: | | ||
python -m build | ||
uv build | ||
- name: Upload package to Test PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
password: ${{ secrets.TEST_PYPI_API_TOKEN }} | ||
repository-url: https://test.pypi.org/legacy/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.