Skip to content

Commit 952da77

Browse files
Merge pull request #62 from HPCNow/main
froster v0.12.20
2 parents e0892ea + 7b3d59a commit 952da77

File tree

8 files changed

+944
-554
lines changed

8 files changed

+944
-554
lines changed

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

+8-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ run-name: Test "froster config" command
44

55
on: [push, pull_request]
66

7+
# We have two identicals jobs, but one of them has the DEBUG environment variable set to 1.
8+
# There reason is to have a way to print the debug log in case of failure.
9+
# But also to have a way to run the tests without the debug flag set, which is the default behavior.
10+
11+
# Avoid paralelism, because the tests are using the same resources in AWS
12+
713
jobs:
814
froster-config:
915
runs-on: ubuntu-latest
@@ -28,8 +34,8 @@ jobs:
2834
LOCAL_INSTALL: true
2935
run: ./install.sh
3036

31-
- name: Run unittests
37+
- name: Run test_config tests
3238
env:
3339
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
3440
AWS_SECRET: ${{ secrets.AWS_SECRET }}
35-
run: python3 -m unittest -v
41+
run: python3 tests/test_config.py

Diff for: .github/workflows/test-froster-index.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Test "froster index" command
2+
3+
run-name: Test "froster index" command
4+
5+
on: [push, pull_request]
6+
7+
# We have two identicals jobs, but one of them has the DEBUG environment variable set to 1.
8+
# There reason is to have a way to print the debug log in case of failure.
9+
# But also to have a way to run the tests without the debug flag set, which is the default behavior.
10+
11+
# Avoid paralelism, because the tests are using the same resources in AWS S3
12+
13+
jobs:
14+
froster-index:
15+
runs-on: ubuntu-latest
16+
steps:
17+
18+
- uses: actions/checkout@v4
19+
with:
20+
ref: ${{ github.ref }}
21+
22+
- name: Set up Python
23+
uses: actions/setup-python@v3
24+
with:
25+
python-version: '3.10'
26+
27+
- name: Create and activate virtual environment
28+
run: |
29+
python -m venv venv
30+
source venv/bin/activate
31+
32+
- name: Install froster
33+
env:
34+
LOCAL_INSTALL: true
35+
run: ./install.sh
36+
37+
- name: Run test_config tests
38+
env:
39+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
40+
AWS_SECRET: ${{ secrets.AWS_SECRET }}
41+
run: python3 tests/test_index.py

0 commit comments

Comments
 (0)