This repository has been archived by the owner on Nov 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from Cosmian/fix-scaffold-cmd
[MSE Home] Fix scaffold command
- Loading branch information
Showing
8 changed files
with
60 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,46 +62,46 @@ jobs: | |
run: | | ||
python -m pytest -m "not cloud and not home" | ||
tests-cloud: | ||
runs-on: [self-hosted, not-sgx] | ||
needs: check | ||
steps: | ||
# Solve perm denied issue on GA | ||
# see: https://github.com/actions/checkout/issues/211 | ||
- name: Chown user | ||
run: | | ||
echo $USER | ||
echo $GITHUB_WORKSPACE | ||
sudo chown -R $USER:$USER $GITHUB_WORKSPACE | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install '.[dev,deploy]' | ||
- name: Run integration tests | ||
env: | ||
MSE_BASE_URL: "https://ci.backend.dev.mse.cosmian.com" | ||
MSE_AUTH0_CLIENT_ID: "bx2WlLrS7qr35iyNqUVTs9jMo834o8mC" | ||
MSE_AUTH0_DOMAIN_NAME: "https://console-dev.eu.auth0.com" | ||
MSE_AUTH0_AUDIENCE: "https://console-dev.eu.auth0.com/api/v2/" | ||
REFRESH_TOKEN: ${{ secrets.DEV_ALICE_REFRESH_TOKEN }} | ||
MSE_TEST_DOMAIN_NAME: ${{ vars.DEV_MSE_TEST_DOMAIN_NAME }} | ||
MSE_TEST_PRIVATE_KEY: ${{ secrets.DEV_MSE_TEST_PRIVATE_KEY }} | ||
MSE_TEST_PUBLIC_KEY: ${{ vars.DEV_MSE_TEST_PUBLIC_KEY }} | ||
MSE_CONF_PATH: ${{ github.workspace }} | ||
run: | | ||
echo 'email = "[email protected]"' > ${MSE_CONF_PATH}/login.toml | ||
echo "refresh_token = \"${REFRESH_TOKEN}\"" >> ${MSE_CONF_PATH}/login.toml | ||
echo "Running tests using ${MSE_BASE_URL}" | ||
python -m pytest -m cloud | ||
# tests-cloud: | ||
# runs-on: [self-hosted, not-sgx] | ||
# needs: check | ||
# steps: | ||
# # Solve perm denied issue on GA | ||
# # see: https://github.com/actions/checkout/issues/211 | ||
# - name: Chown user | ||
# run: | | ||
# echo $USER | ||
# echo $GITHUB_WORKSPACE | ||
# sudo chown -R $USER:$USER $GITHUB_WORKSPACE | ||
# | ||
# - uses: actions/checkout@v3 | ||
# | ||
# - name: Set up Python 3.8 | ||
# uses: actions/setup-python@v4 | ||
# with: | ||
# python-version: 3.8 | ||
# | ||
# - name: Install dependencies | ||
# run: | | ||
# python -m pip install --upgrade pip | ||
# python -m pip install '.[dev,deploy]' | ||
# | ||
# - name: Run integration tests | ||
# env: | ||
# MSE_BASE_URL: "https://ci.backend.dev.mse.cosmian.com" | ||
# MSE_AUTH0_CLIENT_ID: "bx2WlLrS7qr35iyNqUVTs9jMo834o8mC" | ||
# MSE_AUTH0_DOMAIN_NAME: "https://console-dev.eu.auth0.com" | ||
# MSE_AUTH0_AUDIENCE: "https://console-dev.eu.auth0.com/api/v2/" | ||
# REFRESH_TOKEN: ${{ secrets.DEV_ALICE_REFRESH_TOKEN }} | ||
# MSE_TEST_DOMAIN_NAME: ${{ vars.DEV_MSE_TEST_DOMAIN_NAME }} | ||
# MSE_TEST_PRIVATE_KEY: ${{ secrets.DEV_MSE_TEST_PRIVATE_KEY }} | ||
# MSE_TEST_PUBLIC_KEY: ${{ vars.DEV_MSE_TEST_PUBLIC_KEY }} | ||
# MSE_CONF_PATH: ${{ github.workspace }} | ||
# run: | | ||
# echo 'email = "[email protected]"' > ${MSE_CONF_PATH}/login.toml | ||
# echo "refresh_token = \"${REFRESH_TOKEN}\"" >> ${MSE_CONF_PATH}/login.toml | ||
# echo "Running tests using ${MSE_BASE_URL}" | ||
# python -m pytest -m cloud | ||
|
||
tests-home: | ||
runs-on: [self-hosted, sgx] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
recursive-include src/mse_cli/template * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters