You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/publish.yml
+32-27Lines changed: 32 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -2,19 +2,17 @@ name: Publish libeCalc package to PyPI
2
2
3
3
on:
4
4
workflow_call:
5
-
secrets:
6
-
PYPI_TOKEN:
7
-
required: true
8
-
9
-
workflow_dispatch: # Trigger manually, if needed
10
-
11
-
permissions:
12
-
packages: write
13
-
contents: read
14
-
id-token: write
5
+
workflow_dispatch:
15
6
16
7
jobs:
17
8
publish:
9
+
environment:
10
+
name: testpypi
11
+
url: https://test.pypi.org/p/libecalc # TODO: test
12
+
#name: pypi
13
+
#url: https://pypi.org/project/libecalc/
14
+
permissions:
15
+
id-token: write # Required for Trusted Publishing to PyPI, the pypa action uses this
18
16
runs-on: ubuntu-24.04
19
17
steps:
20
18
- name: Checkout code
@@ -28,31 +26,38 @@ jobs:
28
26
with:
29
27
python-version: '3.11'
30
28
29
+
# TODO: Change to uv
31
30
- uses: snok/install-poetry@v1
32
31
with:
33
32
version: 1.8.4
34
33
virtualenvs-create: true
35
34
35
+
# TODO: Needed? Should have done waaaay earlier, ie. before we are allowed to create a new release
36
36
- name: Check pyproject.toml validity
37
37
run: poetry check --no-interaction
38
38
39
-
- name: Cache dependencies
40
-
id: cache-deps
41
-
uses: actions/cache@v4
42
-
with:
43
-
path: ${{github.workspace}}/.venv
44
-
key: poetry-${{ hashFiles('**/poetry.lock') }}
45
-
restore-keys: poetry-
46
-
47
-
- name: Install dependencies # if cache has changed
48
-
if: steps.cache-deps.cache-hit != 'true'
39
+
# TODO: Needed, we do this to validate? In case sth happened between the lock file was ok and now? withdrawn deps? To build, ie. find packages to allow building, prob. yes, but test to verify!
40
+
# - name: Cache dependencies
41
+
# id: cache-deps
42
+
# uses: actions/cache@v4
43
+
# with:
44
+
# path: ${{github.workspace}}/.venv
45
+
# key: poetry-${{ hashFiles('**/poetry.lock') }}
46
+
# restore-keys: poetry-
47
+
48
+
# - name: Install dependencies # if cache has changed
49
+
# if: steps.cache-deps.cache-hit != 'true'
50
+
# run: |
51
+
# poetry config virtualenvs.in-project true
52
+
# poetry install --no-interaction
53
+
54
+
- name: Build the libecalc package (wheel and sdist by default)
Copy file name to clipboardExpand all lines: pyproject.toml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
[tool.poetry]
2
2
name = "libecalc"
3
3
# DO_NOT_EDIT: Version number automatically changed in CICD
4
-
version = "10.0.5"# x-release-please-version
4
+
version = "10.0.6"# x-release-please-version
5
5
# END_DO_NOT_EDIT
6
6
description = "eCalc™ is a software tool for calculation of energy demand and greenhouse gas (GHG) emissions from oil and gas production and processing."
0 commit comments