Skip to content

Commit

Permalink
fix: Simplify CI workflow by removing commented-out steps and updatin…
Browse files Browse the repository at this point in the history
…g release command in pixi.toml
  • Loading branch information
jjjermiah committed Dec 10, 2024
1 parent e0b0635 commit 8178bca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 55 deletions.
55 changes: 1 addition & 54 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -190,57 +190,4 @@ jobs:
HATCH_INDEX_AUTH: ${{ secrets.PYPI_API_TOKEN }}
HATCH_INDEX_REPO: https://upload.pypi.org/legacy/
run: |
pixi run publish-pypi
# Publish-To-Test-PyPi:
# needs: Semantic-Release
# env:
# PIXI_ENV: "publish"
# if: needs.Semantic-Release.outputs.released == 'true'
# strategy:
# matrix:
# os: [ubuntu-latest]

# runs-on: ${{ matrix.os }}
# steps:
# - name: Checkout the code with tag ${{ needs.Semantic-Release.outputs.tag }}
# uses: actions/checkout@v4
# with:
# ref: ${{ needs.Semantic-Release.outputs.tag }}

# - name: Install Pixi
# uses: prefix-dev/[email protected]
# with:
# environments: ${{ env.PIXI_ENV }}
# pixi-version: v0.39.0
# cache: true
# locked: false # wont be the same because of the tag

# - name: Publish to TestPyPI
# env:
# HATCH_INDEX_USER: __token__
# HATCH_INDEX_AUTH: ${{ secrets.TEST_PYPI_API_TOKEN }}
# run: |
# pixi run -e ${{ env.PIXI_ENV }} publish-test

# Test-TestPypi-Installation:
# needs: [Semantic-Release, Publish-To-Test-PyPi]
# strategy:
# matrix:
# os: [ubuntu-latest, macos-latest]
# python-version: ["3.12"]
# runs-on: ${{ matrix.os }}

# steps:
# - name: Checkout the code with tag ${{ needs.Semantic-Release.outputs.tag }}
# uses: actions/checkout@v4
# with:
# ref: ${{ needs.Semantic-Release.outputs.tag }}

# - name: setup python ${{ matrix.python-version }}
# uses: actions/setup-python@v5
# with:
# python-version: ${{ matrix.python-version }}

# - name: Install using TestPyPI
# run: |
# pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ readii
pixi run publish-pypi
2 changes: 1 addition & 1 deletion pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ python-semantic-release = ">=8.5.1"

[feature.release.tasks]
semver = 'echo "Next Version is: $(semantic-release -c config/releaserc.toml version --print)"'
release = "semantic-release -c config/releaserc.toml"
release = "semantic-release -c config/releaserc.toml version"

[feature.build.dependencies]
hatch = "*"
Expand Down

0 comments on commit 8178bca

Please sign in to comment.