Skip to content

Commit 5d616a3

Browse files
committed
some fixes in the installer script
2 parents e4dac8e + c29f433 commit 5d616a3

20 files changed

+2397
-1575
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v4
1414

1515
- name: Set up Python
16-
uses: actions/setup-python@v3
16+
uses: actions/setup-python@v5
1717
with:
1818
python-version: '3.10'
1919

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- uses: actions/checkout@v4
1111

1212
- name: Set up Python
13-
uses: actions/setup-python@v3
13+
uses: actions/setup-python@v5
1414
with:
1515
python-version: '3.10'
1616

Diff for: .github/workflows/pypi-release-publish.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
# separate terms of service, privacy policy, and support
77
# documentation.
88

9-
name: Upload as PyPi package
10-
run-name: Publish froster in PyPi and install in Ubuntu-latest
9+
name: PyPi Release Publish
10+
11+
run-name: PyPi Release Publish
1112

1213
on:
1314
release:
@@ -17,15 +18,15 @@ permissions:
1718
contents: read
1819

1920
jobs:
20-
deploy:
21+
pypi-release:
2122

2223
runs-on: ubuntu-latest
2324

2425
steps:
2526
- uses: actions/checkout@v4
2627

2728
- name: Set up Python
28-
uses: actions/setup-python@v3
29+
uses: actions/setup-python@v5
2930
with:
3031
python-version: '3.x'
3132

@@ -44,7 +45,7 @@ jobs:
4445
password: ${{ secrets.PYPI_API_TOKEN }}
4546

4647
check-froster-installation:
47-
needs: deploy
48+
needs: pypi-release
4849
runs-on: ubuntu-latest
4950
steps:
5051

Diff for: .github/workflows/test-basic-features.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Test basic features
2+
3+
run-name: Test basic features
4+
5+
on: [push, pull_request]
6+
7+
jobs:
8+
test-credentials:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
13+
14+
steps:
15+
16+
- uses: actions/checkout@v4
17+
with:
18+
ref: ${{ github.ref }}
19+
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
- name: Display Python version
26+
run: python3 -c "import sys; print(sys.version)"
27+
28+
- name: Create and activate virtual environment
29+
run: |
30+
python3 -m venv .venv
31+
source .venv/bin/activate
32+
33+
- name: Install froster locally
34+
env:
35+
LOCAL_INSTALL: true
36+
run: ./install.sh
37+
38+
- name: Run test_credentials tests
39+
env:
40+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
41+
AWS_SECRET: ${{ secrets.AWS_SECRET }}
42+
run: python3 tests/test_basic_features.py

Diff for: .github/workflows/test-credentials.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Test "froster credentials"
2+
3+
run-name: Test "froster credentials"
4+
5+
on: [push, pull_request]
6+
7+
jobs:
8+
test-credentials:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
13+
14+
steps:
15+
16+
- uses: actions/checkout@v4
17+
with:
18+
ref: ${{ github.ref }}
19+
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
- name: Display Python version
26+
run: python3 -c "import sys; print(sys.version)"
27+
28+
- name: Create and activate virtual environment
29+
run: |
30+
python3 -m venv .venv
31+
source .venv/bin/activate
32+
33+
- name: Install froster locally
34+
env:
35+
LOCAL_INSTALL: true
36+
run: ./install.sh
37+
38+
- name: Run test_credentials tests
39+
env:
40+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
41+
AWS_SECRET: ${{ secrets.AWS_SECRET }}
42+
run: python3 tests/test_credentials.py

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
ref: ${{ github.ref }}
2121

2222
- name: Set up Python
23-
uses: actions/setup-python@v3
23+
uses: actions/setup-python@v5
2424
with:
2525
python-version: '3.10'
2626

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ jobs:
2020
ref: ${{ github.ref }}
2121

2222
- name: Set up Python
23-
uses: actions/setup-python@v3
23+
uses: actions/setup-python@v5
2424
with:
2525
python-version: '3.10'
2626

2727
- name: Create and activate virtual environment
2828
run: |
29-
python -m venv venv
30-
source venv/bin/activate
29+
python -m venv .venv
30+
source .venv/bin/activate
3131

32-
- name: Install froster
32+
- name: Install froster locally
3333
env:
3434
LOCAL_INSTALL: true
3535
run: ./install.sh

Diff for: .vscode/settings.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"terminal.integrated.shellArgs.linux": [
3+
"-c",
4+
"source .venv/bin/activate"
5+
],
6+
"python.pythonPath": ".venv/bin/python",
7+
"python.analysis.extraPaths": [
8+
"./tests"
9+
]
10+
}

0 commit comments

Comments
 (0)