Skip to content

Commit

Permalink
Merge branch 'master' into 'develop'
Browse files Browse the repository at this point in the history
Synchronize master and develop branch

See merge request iek-3/shared-code/fine!379
  • Loading branch information
JohannesBehrens committed Jan 9, 2025
2 parents f908d4f + 35738a5 commit 5bad367
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
- uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
miniforge-variant: Mambaforge
miniforge-variant: Miniforge3
activate-environment: fine
environment-file: fine/requirements_dev.yml
- name: Run tests
Expand Down
15 changes: 8 additions & 7 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ test-codestyle:
rules:
# Switch from branch pipeline to merge pipeline once a merge request has
# been created on the branch.
- if: $CI_COMMIT_TAG
when: never
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == "push"
when: never
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
Expand All @@ -220,7 +222,7 @@ build-tag:
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
when: never
- if: $CI_COMMIT_BRANCH == "master" && $CI_COMMIT_TAG
- if: $CI_COMMIT_TAG

# Push develop build to local jugit registry
build-dev:
Expand All @@ -240,16 +242,15 @@ pypi-upload:
before_script:
- python3 -m pip install --upgrade build
- python3 -m pip install --upgrade twine
variables:
TWINE_USERNAME: $PYPI_USERNAME
TWINE_PASSWORD: $PYPI_PASSWORD
script:
# Test if the version defined in `pyproject.toml` is the same as the tag
- PYPROJECT_VERSION=$(grep -m 1 version pyproject.toml | tr -s ' ' | tr -d '"' | tr -d "'" | cut -d' ' -f3)
- test PYPROJECT_VERSION = v${CI_COMMIT_TAG}
- echo v${PYPROJECT_VERSION}
- echo ${CI_COMMIT_TAG}
- test v${PYPROJECT_VERSION} = ${CI_COMMIT_TAG}
# Build and push to pypi
- python3 -m build
- python3 -m twine upload dist/*
- python3 -m twine upload --repository pypi --non-interactive --verbose --disable-progress-bar dist/*
rules:
- if: $CI_COMMIT_BRANCH == "master" && $CI_COMMIT_TAG
- if: $CI_COMMIT_TAG

0 comments on commit 5bad367

Please sign in to comment.