Skip to content

Commit 2c2a100

Browse files
Increase version number to v1.1.0 (#23)
* Increase version number * Sync tags and main seperately
1 parent f25ffc3 commit 2c2a100

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

.github/workflows/sync.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- main
7+
tags:
8+
- '*'
79
pull_request:
810
branches:
911
- main
@@ -24,7 +26,8 @@ jobs:
2426
with:
2527
fetch-depth: 0
2628

27-
- name: Configure SSH and Push to Destination
29+
- name: Sync Main
30+
if: ${{ github.event_name != 'push' || github.ref == 'refs/heads/main' }}
2831
run: |
2932
mkdir -p ~/.ssh
3033
echo "${{ secrets.SYNC_DEPLOY_KEY }}" | base64 --decode > ~/.ssh/sync_deploy_key
@@ -35,4 +38,16 @@ jobs:
3538
3639
git remote add destination ${DESTINATION_URL}
3740
git push destination main
41+
42+
- name: Sync Tags
43+
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
44+
run: |
45+
mkdir -p ~/.ssh
46+
echo "${{ secrets.SYNC_DEPLOY_KEY }}" | base64 --decode > ~/.ssh/sync_deploy_key
47+
chmod 600 ~/.ssh/sync_deploy_key
48+
eval "$(ssh-agent -s)"
49+
ssh-add ~/.ssh/sync_deploy_key
50+
ssh-keyscan github.com >> ~/.ssh/known_hosts
51+
52+
git remote add destination ${DESTINATION_URL}
3853
git push destination --tags

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "tirex-ts"
3-
version = "1.0.0"
3+
version = "1.1.0"
44
authors = [
55
{ name="Andreas Auer", email="[email protected]" },
66
{ name="Martin Loretz", email="[email protected]" },

tests/test_forecast.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,6 @@ def test_forecast_seattle_5T(tirex_model, resample_strategy, ref_mean_path, ref_
5454
ref_mean = load_tensor_from_txt_file(ref_mean_path).unsqueeze(0)
5555
ref_quantiles = load_tensor_from_pt_file(ref_quantiles_path)
5656

57-
# write the resampled quantiles to a file
58-
torch.save(quantiles, "loop_seattle_5T_quantiles_resampled_ref.pt")
59-
6057
# default rtol & atol for bfloat16
6158
torch.testing.assert_close(mean, ref_mean, rtol=1.6e-2, atol=1e-5)
6259
torch.testing.assert_close(quantiles, ref_quantiles, rtol=1.6e-2, atol=1e-5)

0 commit comments

Comments
 (0)