Files
sphere-grid/.gitea/workflows/tests.yaml
Alexandre RIO 4113a808ae
Some checks failed
CI/CD / wol (push) Successful in 0s
CI/CD / build (push) Failing after 35s
switch CI to uv
2025-09-12 22:19:03 +02:00

36 lines
1.0 KiB
YAML

name: CI/CD
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
wol:
runs-on: kobol
steps:
- name: Wake On Lan
run: wol ${{ secrets.WOL_MAC_ADDRESS }}
- name: Wait for the server to be reachable
run: |
while ! ping -c 1 -W 1 ${{ secrets.WOL_IP_ADDRESS }}; do
echo "Waiting for server to be reachable..."
sleep 5
done
build:
runs-on: galactica
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Set up Python
run: uv python install
- name: Install the code linting and formatting tool Ruff
run: uv build
- name: Lint code with Ruff
run: ruff check --output-format=github --target-version=py39
- name: Check code formatting with Ruff
run: ruff format --diff --target-version=py39
continue-on-error: true