Skip to content

Commit

Permalink
froster v0.12.11 - Merge pull request #56 from HPCNow/main
Browse files Browse the repository at this point in the history
froster v0.12.11
  • Loading branch information
victormachadoperez authored Jun 6, 2024
2 parents ef6ba12 + 26397a3 commit 638e2c6
Show file tree
Hide file tree
Showing 8 changed files with 257 additions and 184 deletions.
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
name: froster-config
name: Test "froster config" command

run-name: Test "froster config" command
on: [push, pull_request]

env:
REPO: ${{ github.repository }}
BRANCH: ${{ github.ref }}
on: [push, pull_request]

jobs:
check-froster-installation:
froster-config:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}

- name: Install froster
run: ./install.sh

- name: Check froster version
run: froster --version
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'

- name: Install requirements
run: pip3 install -r requirements.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
- name: Run unittests
env:
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/froster-local-install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Install Froster locally
run-name: Froster local install succeeded on Ubuntu-latest.
on: [push, pull_request]

jobs:
install:
runs-on: ubuntu-latest

env:
LOCAL_INSTALL: true

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'

- name: Install pipx
run: python -m pip install pipx

- name: Install froster locally
run: ./install.sh

- name: Source ~/.bashrc
run: source ~/.bashrc

- name: Check Froster is installed
run: froster --info

18 changes: 0 additions & 18 deletions .github/workflows/froster-ubuntu-install.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
# separate terms of service, privacy policy, and support
# documentation.

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

on:
release:
Expand All @@ -22,18 +23,52 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build

- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

check-froster-installation:
needs: deploy
runs-on: ubuntu-latest
steps:

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'

- name: Install pipx
run: python -m pip install pipx

- name: Give PyPi repo some minuts to update
run: sleep 300 # Wait for 5 minutes

- name: Install Froster
run: curl -s https://raw.githubusercontent.com/${{ github.repository }}/${{ github.ref }}/install.sh?$(date +%s) | bash

- name: Check Froster version matches tag
run: |
VERSION=$(froster --version)
TAG=${GITHUB_REF#refs/tags/}
if [[ "$VERSION" != "froster $TAG" ]]; then
echo "Version $VERSION does not match tag $TAG"
exit 1
else
echo "froster $VERSION successfully installed"
fi
Loading

0 comments on commit 638e2c6

Please sign in to comment.