Skip to content

Commit 93f7839

Browse files
Merge pull request #35 from HPCNow/develop
froster mount and froster umount commands done
2 parents c27fcc5 + 75c004c commit 93f7839

8 files changed

+3861
-3504
lines changed
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: froster-test-generate-dummy-files
2+
run-name: Generate dummy files for testing
3+
on: [push, pull_request]
4+
jobs:
5+
check-froster-installation:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v4
9+
with:
10+
ref: ${{ github.ref }}
11+
- run: ./install.sh
12+
- run: froster --version
13+
- run: python3 tests/generate_dummy_files.py

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

+8-12
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
name: froster-ubuntu-install
2-
run-name: Froster installs correctly in Ubuntu-latest
3-
on: [push]
2+
run-name: Check that froster installs correctly in Ubuntu-latest
3+
on: [push, pull_request]
44
jobs:
55
check-froster-installation:
66
runs-on: ubuntu-latest
7-
steps:
8-
- uses: actions/checkout@v4
9-
- run: which curl
10-
- run: which python3
11-
- run: which pipx
12-
- run: which gcc
13-
- run: which unzip
14-
- run: pipx environment
15-
- run: ./install.sh
16-
- run: froster --version
7+
steps:
8+
- name: Install Froster
9+
run: curl -s https://raw.githubusercontent.com/${{ github.repository }}/${{ github.ref }}/install.sh | bash
10+
11+
- name: Check Froster is installed
12+
run: froster --version
1713

1814

Diff for: .github/workflows/python-publish.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# This workflow will upload a Python Package using Twine when a release is created
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
name: Upload Python Package
10+
11+
on:
12+
workflow_dispatch:
13+
inputs:
14+
logLevel:
15+
description: 'Log level'
16+
required: true
17+
default: 'warning'
18+
tags:
19+
description: 'Test scenario tags'
20+
21+
permissions:
22+
contents: read
23+
24+
jobs:
25+
deploy:
26+
27+
runs-on: ubuntu-latest
28+
29+
steps:
30+
- uses: actions/checkout@v4
31+
- name: Set up Python
32+
uses: actions/setup-python@v3
33+
with:
34+
python-version: '3.x'
35+
- name: Install dependencies
36+
run: |
37+
python -m pip install --upgrade pip
38+
pip install build
39+
- name: Build package
40+
run: python -m build
41+
- name: Publish package
42+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
43+
with:
44+
user: __token__
45+
password: ${{ secrets.PYPI_API_TOKEN }}

Diff for: dockerfile

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Use an official Ubuntu runtime as a parent image
2+
FROM ubuntu:latest
3+
4+
# Update the system
5+
RUN apt-get update -y
6+
7+
# Install dependencies
8+
RUN apt-get install -y vim curl pip pipx git gcc lib32gcc-s1 unzip
9+
10+
RUN cd /home
11+
RUN python3 -m venv /home/.venv
12+
RUN . /home/.venv/bin/activate
13+
14+
# # Install python packages needed for build and deploy
15+
RUN /home/.venv/bin/pip install twine setuptools wheel
16+
17+
# ensure path
18+
ENV PATH="/root/.local/bin:${PATH}"
19+
20+
# Set the working directory in the container to /app
21+
WORKDIR /home/ubuntu

0 commit comments

Comments
 (0)