Skip to content

Commit

Permalink
chore: updating CI
Browse files Browse the repository at this point in the history
  • Loading branch information
vijayvammi committed Dec 23, 2024
1 parent 13b486e commit 6f252e4
Show file tree
Hide file tree
Showing 4 changed files with 136 additions and 32 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
- "mkdocs.yml"
branches:
- "main"
workflow_dispatch:
workflow_call:

jobs:
PRCheck:
Expand Down
35 changes: 4 additions & 31 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,10 @@ on:
- "examples/**"
branches:
- "main"
- "rc"

jobs:
PRCheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.9
- run: |
# Download the binary
curl -sLO https://github.com/argoproj/argo-workflows/releases/download/v3.5.4/argo-linux-amd64.gz
# Unzip
gunzip argo-linux-amd64.gz
# Make binary executable
chmod +x argo-linux-amd64
# Move binary to path
mv ./argo-linux-amd64 /usr/local/bin/argo
# Test installation
argo version
- run: python -m pip install poetry
- run: |
python -m poetry install --without docs,binary,perf,tutorial,compare
poetry run tox
uses: "./.github/workflows/pr.yaml"

Release:
runs-on: ubuntu-latest
Expand All @@ -48,22 +23,20 @@ jobs:
python-version: 3.9
- run: python -m pip install poetry
- run: |
python -m poetry install --only release
uv sync --only-group release
- name: Figure version
continue-on-error: true
env:
GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
id: last_tag
run: |
CURRENT=$(python -m poetry run semantic-release -v --noop version --print-last-released)
CURRENT=$(uv run semantic-release -v --noop version --print-last-released)
echo "Current: $CURRENT"
VERSION=$(python -m poetry run semantic-release -v --noop version --print)
VERSION=$(uv run semantic-release -v --noop version --print)
echo "new: $VERSION"
# python -m poetry run semantic-release version --tag --push
if [ "$CURRENT" == "$VERSION" ]; then
echo "version=$VERSION" >> $GITHUB_OUTPUT
exit 1
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ dependencies = [
"catalog",
"run_log_store",
"executor",

]

[project.scripts]
Expand All @@ -39,6 +38,9 @@ notebook = [
examples = [
"pandas>=2.2.3",
]
release = [
"python-semantic-release>=9.15.2",
]

[build-system]
requires = ["hatchling"]
Expand Down
127 changes: 127 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6f252e4

Please sign in to comment.