Skip to content

Commit 638e2c6

Browse files
froster v0.12.11 - Merge pull request #56 from HPCNow/main
froster v0.12.11
2 parents ef6ba12 + 26397a3 commit 638e2c6

8 files changed

+257
-184
lines changed

Diff for: .github/workflows/froster-test-config.yml renamed to .github/workflows/froster-config.yml

+12-13
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,27 @@
1-
name: froster-config
1+
name: Test "froster config" command
2+
23
run-name: Test "froster config" command
3-
on: [push, pull_request]
44

5-
env:
6-
REPO: ${{ github.repository }}
7-
BRANCH: ${{ github.ref }}
5+
on: [push, pull_request]
86

97
jobs:
10-
check-froster-installation:
8+
froster-config:
119
runs-on: ubuntu-latest
1210
steps:
1311

1412
- uses: actions/checkout@v4
1513
with:
1614
ref: ${{ github.ref }}
1715

18-
- name: Install froster
19-
run: ./install.sh
20-
21-
- name: Check froster version
22-
run: froster --version
16+
- name: Set up Python
17+
uses: actions/setup-python@v3
18+
with:
19+
python-version: '3.10'
2320

24-
- name: Install requirements
25-
run: pip3 install -r requirements.txt
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install .
2625
2726
- name: Run unittests
2827
env:

Diff for: .github/workflows/froster-local-install.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Install Froster locally
2+
run-name: Froster local install succeeded on Ubuntu-latest.
3+
on: [push, pull_request]
4+
5+
jobs:
6+
install:
7+
runs-on: ubuntu-latest
8+
9+
env:
10+
LOCAL_INSTALL: true
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v3
17+
with:
18+
python-version: '3.10'
19+
20+
- name: Install pipx
21+
run: python -m pip install pipx
22+
23+
- name: Install froster locally
24+
run: ./install.sh
25+
26+
- name: Source ~/.bashrc
27+
run: source ~/.bashrc
28+
29+
- name: Check Froster is installed
30+
run: froster --info
31+

Diff for: .github/workflows/froster-ubuntu-install.yml

-18
This file was deleted.

Diff for: .github/workflows/python-publish.yml renamed to .github/workflows/pypi-release-publish.yml

+36-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
# separate terms of service, privacy policy, and support
77
# documentation.
88

9-
name: Upload Python Package
9+
name: Upload as PyPi package
10+
run-name: Publish froster in PyPi and install in Ubuntu-latest
1011

1112
on:
1213
release:
@@ -22,18 +23,52 @@ jobs:
2223

2324
steps:
2425
- uses: actions/checkout@v4
26+
2527
- name: Set up Python
2628
uses: actions/setup-python@v3
2729
with:
2830
python-version: '3.x'
31+
2932
- name: Install dependencies
3033
run: |
3134
python -m pip install --upgrade pip
3235
pip install build
36+
3337
- name: Build package
3438
run: python -m build
39+
3540
- name: Publish package
3641
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
3742
with:
3843
user: __token__
3944
password: ${{ secrets.PYPI_API_TOKEN }}
45+
46+
check-froster-installation:
47+
needs: deploy
48+
runs-on: ubuntu-latest
49+
steps:
50+
51+
- name: Set up Python
52+
uses: actions/setup-python@v3
53+
with:
54+
python-version: '3.10'
55+
56+
- name: Install pipx
57+
run: python -m pip install pipx
58+
59+
- name: Give PyPi repo some minuts to update
60+
run: sleep 300 # Wait for 5 minutes
61+
62+
- name: Install Froster
63+
run: curl -s https://raw.githubusercontent.com/${{ github.repository }}/${{ github.ref }}/install.sh?$(date +%s) | bash
64+
65+
- name: Check Froster version matches tag
66+
run: |
67+
VERSION=$(froster --version)
68+
TAG=${GITHUB_REF#refs/tags/}
69+
if [[ "$VERSION" != "froster $TAG" ]]; then
70+
echo "Version $VERSION does not match tag $TAG"
71+
exit 1
72+
else
73+
echo "froster $VERSION successfully installed"
74+
fi

0 commit comments

Comments
 (0)