Skip to content

Commit 2815b86

Browse files
victormachadoperezVictor Machado
and
Victor Machado
authored
Develop (#10)
* OHSU-32 First batch of "froster config" tests * OHSU-32 Separate requirements from setup.py and install them prior executing tests * Added return True False logic in froster config and added extra check in froster config --aws for region * OHSU-32 Make the install script install from current repo and branch * Fix runnign unittests * Set correct env variables in GA * Fix BRANCH env in GA workflow * error while installing froster in ga * fixing ga * fixing ga * fix ga * fix ga * fix ga * restore install to its original state * fix ga * fix ga * fix ga * fix ga * fix ga * fix ga * fix ga * fix ga * Adding secrets in environment * fix ga * fix ga * fix ga * fix ga * fix ga * ignore resource warnings * close boto3 sessions if they are not used * Increased version number to 0.10.5 * version read from setup.py and aws sessions closed at the end * Install froster in froster-test-config tests * Delete unneded variables in froster-ubuntu-install test * new version retrival implementation * mini bugfix * Ignore resource warning due to boto3 library * trying to ignore resource warnings * closing connections in AWS BOTO 3 when exiting * Close check credentials session * trying to ignore resource warnings in ga * trying to delete resource warning from ga --------- Co-authored-by: Victor Machado <[email protected]>
1 parent 8dab68f commit 2815b86

11 files changed

+677
-352
lines changed
+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: froster-config
2+
run-name: Test "froster config" command
3+
on: [push, pull_request]
4+
5+
env:
6+
REPO: ${{ github.repository }}
7+
BRANCH: ${{ github.ref }}
8+
9+
jobs:
10+
check-froster-installation:
11+
runs-on: ubuntu-latest
12+
steps:
13+
14+
- uses: actions/checkout@v4
15+
with:
16+
ref: ${{ github.ref }}
17+
18+
- name: Install froster
19+
run: ./install.sh
20+
21+
- name: Check froster version
22+
run: froster --version
23+
24+
- name: Install requirements
25+
run: pip3 install -r requirements.txt
26+
27+
- name: Run unittests
28+
env:
29+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
30+
AWS_SECRET: ${{ secrets.AWS_SECRET }}
31+
run: python3 -m unittest -v

.github/workflows/froster-test-generate-dummy-files.yml

-13
This file was deleted.

.github/workflows/froster-ubuntu-install.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
name: froster-ubuntu-install
22
run-name: Check that froster installs correctly in Ubuntu-latest
33
on: [push, pull_request]
4+
env:
5+
REPO: ${{ github.repository }}
6+
BRANCH: ${{ github.ref }}
7+
48
jobs:
59
check-froster-installation:
610
runs-on: ubuntu-latest
7-
steps:
11+
steps:
812
- name: Install Froster
913
run: curl -s https://raw.githubusercontent.com/${{ github.repository }}/${{ github.ref }}/install.sh | bash
1014

dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ FROM ubuntu:latest
55
RUN apt-get update -y
66

77
# Install dependencies
8-
RUN apt-get install -y vim curl pip pipx git gcc lib32gcc-s1 unzip
8+
RUN apt-get install -y vim curl pip git gcc lib32gcc-s1 unzip fuse3
9+
10+
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y pipx
911

1012
RUN cd /home
1113
RUN python3 -m venv /home/.venv

0 commit comments

Comments
 (0)