Skip to content

Commit

Permalink
Try CI with Heptapod
Browse files Browse the repository at this point in the history
  • Loading branch information
paugier committed Oct 27, 2024
1 parent 8c41261 commit 6df2b45
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
stages:
- test
- build
- release

test-run:
image: bookworm-slim
stage: test
script:
- wget "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
- bash Miniforge3-$(uname)-$(uname -m).sh -b
- ls ~/miniconda
- ~/miniconda/bin/conda init bash
- . ~/.bashrc
- conda --version

build-package:
image: python:3.12
stage: build
before_script:
- python -m pip install build
script:
- python -m build
needs: []
artifacts:
when: always
paths:
- dist
expire_in: 24 hrs

# manually set TWINE_PASSWORD in web interface to your PyPI API token
release-package:
image: python:3.12
stage: release
needs: [ "build-package" ]
# rules:
# - if: '$CI_MERGE_REQUEST_ID'
# when: never
# - if: '$CI_COMMIT_TAG'
# when: on_success
variables:
TWINE_USERNAME: __token__
before_script:
- pip install twine -U
# script:
# - twine upload dist/*

0 comments on commit 6df2b45

Please sign in to comment.