Skip to content

Commit

Permalink
fixing linting errors for GH actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-i-berry committed Aug 15, 2024
1 parent dbec4c6 commit 37acb69
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 26 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test-code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
#VALIDATE_PYTHON_FLAKE8: false
VALIDATE_PYTHON_MYPY: false
VALIDATE_PYTHON_RUFF: false
VALIDATE_SHELL_SHFMT: false
# VALIDATE_CHECKOV: false
# VALIDATE_OPENAPI: false
# To report GitHub Actions status checks
Expand Down
53 changes: 27 additions & 26 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,36 +22,37 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Create config file
run: "\n
run: |
echo '{
\"base_url\": \"http://localhost:5050\",\n
\"broker_hostname\": \"globalbroker.meteo.fr\",\n
\"broker_password\": \"everyone\",\n
\"broker_port\": 443,\n
\"broker_protocol\": \"websockets\",\n
\"broker_username\": \"everyone\",\n
\"download_workers\": 1,\n
\"download_dir\": \"downloads\",\n
\"flask_host\": \"0.0.0.0\",\n
\"flask_port\": 5050,\n
\"log_level\": \"DEBUG\",\n
\"log_path\": \"logs\",\n
\"min_free_space\": 10,\n
\"mqtt_session_info\" : \"mqtt_session.json\",\n
\"save_logs\": false,\n
\"validate_topics\": true\n
}' > config.json"
"base_url": "http://localhost:5050",
"broker_hostname": "globalbroker.meteo.fr",
"broker_password": "everyone",
"broker_port": 443,
"broker_protocol": "websockets",
"broker_username": "everyone",
"download_workers": 1,
"download_dir": "downloads",
"flask_host": "0.0.0.0",
"flask_port": 5050,
"log_level": "DEBUG",
"log_path": "logs",
"min_free_space": 10,
"mqtt_session_info" : "mqtt_session.json",
"save_logs": false,
"validate_topics": true
}' > config.json
shell: bash

- name: Set config environment variable
run: "
CONFIG_PATH=\"$PWD/config.1json\"\n
echo \"WIS2DOWNLOADER_CONFIG=$CONFIG_PATH\" >> $GITHUB_ENV"
run: |
CONFIG_PATH="$PWD/config.1json"
echo "WIS2DOWNLOADER_CONFIG=$CONFIG_PATH" >> $GITHUB_ENV"
- name: Install requirements 📦
run: "
python3 -m pip install --upgrade pip \n
pip3 install . \n
pip3 install -r requirements-dev.txt"
run: |
python3 -m pip install --upgrade pip
pip3 install .
pip3 install -r requirements-dev.txt
- name: run tests ⚙️
run: pytest
run: |
pytest

0 comments on commit 37acb69

Please sign in to comment.