34 lines
1.3 KiB
YAML
34 lines
1.3 KiB
YAML
name: check
|
|
on:
|
|
push:
|
|
branches: [main, feat/release-v2]
|
|
pull_request:
|
|
|
|
jobs:
|
|
check-without-hardware:
|
|
runs-on: ubuntu-24.04
|
|
container: python:3.12.12-slim-bookworm
|
|
steps:
|
|
# nodejs jest potrzebne akcjom JS (checkout, upload-artifact) i musi być
|
|
# zainstalowane przed pierwszym krokiem "uses".
|
|
- name: Install build dependencies
|
|
run: |
|
|
apt-get update
|
|
apt-get install -y --no-install-recommends build-essential cmake git libusb-1.0-0-dev librtlsdr-dev pkg-config ca-certificates nodejs
|
|
- uses: actions/checkout@v4
|
|
- name: Install pinned Python tools
|
|
run: pip install --no-cache-dir --disable-pip-version-check -r tools/requirements.txt
|
|
- name: All tests without hardware
|
|
run: bash ./tools/check_all
|
|
- name: Upload validation reports
|
|
uses: actions/upload-artifact@v4
|
|
# Klient upload-artifact@v4+ odmawia pracy poza github.com (wykrywa reszte
|
|
# swiata jako GHES). Wysylka idzie przez ACTIONS_RESULTS_URL, a
|
|
# GITHUB_SERVER_URL sluzy tylko do tego testu i URL-a wyswietlanego, wiec
|
|
# host z sufiksem .localhost omija blokade bez wplywu na API.
|
|
env:
|
|
GITHUB_SERVER_URL: http://gitea.localhost
|
|
with:
|
|
name: validation-reports
|
|
path: artifacts/validation/
|