Skip to content

Commit e5e5dc8

Browse files
Release v0.7.0.dev5 (#724)
1 parent c300f2e commit e5e5dc8

File tree

3 files changed

+63
-45
lines changed

3 files changed

+63
-45
lines changed

.github/workflows/pr-ci.yml

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -89,47 +89,3 @@ jobs:
8989
fail_ci_if_error: true
9090
directory: "./reports/coverage/"
9191
verbose: true
92-
93-
pre-release-version:
94-
runs-on: ubuntu-latest
95-
if: startsWith(github.event.pull_request.title, 'Release v')
96-
outputs:
97-
version: ${{ steps.get-version.outputs.version }}
98-
steps:
99-
- id: get-version
100-
run: |
101-
fullname="${{github.event.pull_request.title}}"
102-
echo "version=${fullname#"Release "}" >> $GITHUB_OUTPUT
103-
104-
pip-test:
105-
runs-on: ubuntu-latest
106-
if: startsWith(github.event.pull_request.title, 'Release v')
107-
steps:
108-
- uses: actions/checkout@v4
109-
- uses: mamba-org/setup-micromamba@v1
110-
with:
111-
micromamba-version: '1.5.10-0'
112-
environment-name: pipbuild
113-
create-args: >-
114-
python=3.11
115-
pip
116-
python-build
117-
post-cleanup: all
118-
cache-environment: true
119-
- name: Build package
120-
run: python -m build
121-
- name: Test package install
122-
run: |
123-
pip install dist/calliope-*.tar.gz
124-
calliope --help
125-
126-
pre-release:
127-
needs: [test, pre-release-version, pip-test]
128-
if: needs.pip-test.result == 'success' && needs.test.result == 'success' && startsWith(github.event.pull_request.title, 'Release v')
129-
uses: arup-group/actions-city-modelling-lab/.github/workflows/pip-build.yml@main
130-
secrets:
131-
TEST_PYPI_API_TOKEN: ${{ secrets.TEST_PYPI_API_TOKEN }}
132-
with:
133-
package_name: calliope
134-
version: ${{needs.pre-release-version.outputs.version}}
135-
pip_args: ''

.github/workflows/pre-release.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Pre-release CD
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "main"
7+
8+
defaults:
9+
run:
10+
shell: bash -l {0}
11+
12+
concurrency:
13+
# Use github.run_id on main branch
14+
# Use github.event.pull_request.number on pull requests, so it's unique per pull request
15+
# Use github.ref on other branches, so it's unique per branch
16+
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_id || github.event.pull_request.number || github.ref }}
17+
cancel-in-progress: true
18+
19+
jobs:
20+
pre-release-version:
21+
runs-on: ubuntu-latest
22+
if: startsWith(github.event.pull_request.title, 'Release v')
23+
outputs:
24+
version: ${{ steps.get-version.outputs.version }}
25+
steps:
26+
- id: get-version
27+
run: |
28+
fullname="${{github.event.pull_request.title}}"
29+
echo "version=${fullname#"Release "}" >> $GITHUB_OUTPUT
30+
31+
pip-test:
32+
runs-on: ubuntu-latest
33+
if: startsWith(github.event.pull_request.title, 'Release v')
34+
steps:
35+
- uses: actions/checkout@v4
36+
- uses: mamba-org/setup-micromamba@v1
37+
with:
38+
micromamba-version: '1.5.10-0'
39+
environment-name: pipbuild
40+
create-args: >-
41+
python=3.11
42+
pip
43+
python-build
44+
post-cleanup: all
45+
cache-environment: true
46+
- name: Build package
47+
run: python -m build
48+
- name: Test package install
49+
run: |
50+
pip install dist/calliope-*.tar.gz
51+
calliope --help
52+
53+
pre-release:
54+
needs: [pre-release-version, pip-test]
55+
if: needs.pip-test.result == 'success' && startsWith(github.event.pull_request.title, 'Release v')
56+
uses: arup-group/actions-city-modelling-lab/.github/workflows/pip-build.yml@main
57+
secrets:
58+
TEST_PYPI_API_TOKEN: ${{ secrets.TEST_PYPI_API_TOKEN }}
59+
with:
60+
package_name: calliope
61+
version: ${{needs.pre-release-version.outputs.version}}
62+
pip_args: ''

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 0.7.0.dev5 (Unreleased)
1+
## 0.7.0.dev5 (2024-12-04)
22

33
### User-facing changes
44

0 commit comments

Comments
 (0)