Changed logging format of raspberry pi hwio #188
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: pytest | |
on: | |
push: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install nmap | |
run: sudo apt-get install -y nmap | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Setup docker compose | |
uses: KengoTODA/actions-setup-docker-compose@main | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run prepre env | |
run: | | |
chmod +x ./.devcontainer/prepare-env.sh | |
.devcontainer/prepare-env.sh | |
shell: bash | |
- name: Start containers | |
run: docker-compose -f "docker-compose.yml" up -d --build | |
working-directory: ./.devcontainer/virtual | |
- name: Sleep for 30 seconds to give conatiners time to spawn | |
run: sleep 30s | |
shell: bash | |
- name: Pytest Connections | |
run: | | |
pip install --no-cache-dir -r tests/requirements.txt | |
pytest tests/test_connections.py --verbose | |
- name: Stop containers | |
if: always() | |
run: docker-compose -f "docker-compose.yml" down | |
working-directory: ./.devcontainer/virtual |