Add Timezone support to receive_time
and update tests (adjusted-time-failure)
#72
Workflow file for this run
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
name: Build-CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: | |
name: IO | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Install library | |
run: python3 setup.py install | |
- name: Install sphinx | |
run: pip3 install pylint Sphinx sphinx-rtd-theme | |
- name: Print Timezone | |
run: | | |
echo "Timezone information:" | |
date # This will print the current date, time, and timezone information | |
- name: Print Locale Information | |
run: | | |
echo "Locale information:" | |
locale # This will print locale information for further debugging | |
- name: Print IP Address | |
run: | | |
echo "Public IP Address:" | |
curl ifconfig.me # This will print the public IP address of the GitHub runner | |
- name: list python version and modules | |
run: | | |
python --version | |
pip list | |
- name: Run unittests | |
env: | |
SECRET_IO_KEY: ${{ secrets.CI_IO_KEY }} | |
SECRET_IO_USER: ${{ secrets.CI_IO_USERNAME }} | |
run: | | |
echo "Secret key length: ${#SECRET_IO_KEY}" | |
echo "Secret username length: ${#SECRET_IO_USER}" | |
cd tests/ | |
ADAFRUIT_IO_KEY=$SECRET_IO_KEY ADAFRUIT_IO_USERNAME=$SECRET_IO_USER python -m unittest discover | |
cd .. | |
- name: Generate documentation | |
run: | | |
cd docs && sphinx-build -E -W -b html . _build/html && cd .. |