-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
26 additions
and
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,41 +13,34 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
- uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
python-version: "3.10" | ||
cache: "pip" | ||
cache-dependency-path: | | ||
pyproject.toml | ||
requirements-dev.txt | ||
miniforge-version: latest | ||
activate-environment: "" | ||
use-mamba: true | ||
|
||
- name: Setup Graphviz | ||
uses: ts-graphviz/setup-graphviz@v1 | ||
with: | ||
macos-skip-brew-update: 'true' | ||
|
||
- name: Install dependencies | ||
- name: Install nox and uv | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements-dev.txt | ||
pipx install nox | ||
pipx install uv | ||
- name: Check that versions match | ||
id: version | ||
run: | | ||
nox -s dev | ||
echo "Release tag: [${{ github.event.release.tag_name }}]" | ||
PACKAGE_VERSION=$(python -c "import erdantic; print(erdantic.__version__)") | ||
PACKAGE_VERSION=$(.nox/dev/bin/python -c "import erdantic; print(erdantic.__version__)") | ||
echo "Package version: [$PACKAGE_VERSION]" | ||
[ ${{ github.event.release.tag_name }} == "v$PACKAGE_VERSION" ] || { exit 1; } | ||
echo "::set-output name=major_minor_version::v${PACKAGE_VERSION%.*}" | ||
- name: Build package | ||
run: | | ||
make dist | ||
nox -s build | ||
- name: Build docs | ||
run: | | ||
make docs | ||
nox -s docs | ||
- name: Publish to Test PyPI | ||
uses: pypa/[email protected] | ||
|
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