Skip to content

Commit

Permalink
Merge pull request #62 from HPCNow/main
Browse files Browse the repository at this point in the history
froster v0.12.20
  • Loading branch information
victormachadoperez authored Jun 12, 2024
2 parents e0892ea + 7b3d59a commit 952da77
Show file tree
Hide file tree
Showing 8 changed files with 944 additions and 554 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/test-froster-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ run-name: Test "froster config" command

on: [push, pull_request]

# We have two identicals jobs, but one of them has the DEBUG environment variable set to 1.
# There reason is to have a way to print the debug log in case of failure.
# But also to have a way to run the tests without the debug flag set, which is the default behavior.

# Avoid paralelism, because the tests are using the same resources in AWS

jobs:
froster-config:
runs-on: ubuntu-latest
Expand All @@ -28,8 +34,8 @@ jobs:
LOCAL_INSTALL: true
run: ./install.sh

- name: Run unittests
- name: Run test_config tests
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET: ${{ secrets.AWS_SECRET }}
run: python3 -m unittest -v
run: python3 tests/test_config.py
41 changes: 41 additions & 0 deletions .github/workflows/test-froster-index.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Test "froster index" command

run-name: Test "froster index" command

on: [push, pull_request]

# We have two identicals jobs, but one of them has the DEBUG environment variable set to 1.
# There reason is to have a way to print the debug log in case of failure.
# But also to have a way to run the tests without the debug flag set, which is the default behavior.

# Avoid paralelism, because the tests are using the same resources in AWS S3

jobs:
froster-index:
runs-on: ubuntu-latest
steps:

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

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

- name: Create and activate virtual environment
run: |
python -m venv venv
source venv/bin/activate
- name: Install froster
env:
LOCAL_INSTALL: true
run: ./install.sh

- name: Run test_config tests
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET: ${{ secrets.AWS_SECRET }}
run: python3 tests/test_index.py
Loading

0 comments on commit 952da77

Please sign in to comment.