mirror of
https://github.com/nicolargo/glances.git
synced 2026-04-18 13:00:22 -04:00
Bumps the actions group with 10 updates: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `5.0.1` | `6.0.2` | | [actions/upload-artifact](https://github.com/actions/upload-artifact) | `4.6.2` | `7.0.0` | | [actions/download-artifact](https://github.com/actions/download-artifact) | `5.0.0` | `8.0.1` | | [docker/metadata-action](https://github.com/docker/metadata-action) | `5.10.0` | `6.0.0` | | [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) | `3.7.0` | `4.0.0` | | [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) | `3.12.0` | `4.0.0` | | [docker/login-action](https://github.com/docker/login-action) | `3.7.0` | `4.0.0` | | [docker/build-push-action](https://github.com/docker/build-push-action) | `6.19.2` | `7.0.0` | | [github/codeql-action](https://github.com/github/codeql-action) | `3.32.6` | `4.32.6` | | [actions/setup-node](https://github.com/actions/setup-node) | `5.0.0` | `6.3.0` | Updates `actions/checkout` from 5.0.1 to 6.0.2 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](93cb6efe18...de0fac2e45) Updates `actions/upload-artifact` from 4.6.2 to 7.0.0 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](ea165f8d65...bbbca2ddaa) Updates `actions/download-artifact` from 5.0.0 to 8.0.1 - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](634f93cb29...3e5f45b2cf) Updates `docker/metadata-action` from 5.10.0 to 6.0.0 - [Release notes](https://github.com/docker/metadata-action/releases) - [Commits](c299e40c65...030e881283) Updates `docker/setup-qemu-action` from 3.7.0 to 4.0.0 - [Release notes](https://github.com/docker/setup-qemu-action/releases) - [Commits](c7c5346462...ce360397dd) Updates `docker/setup-buildx-action` from 3.12.0 to 4.0.0 - [Release notes](https://github.com/docker/setup-buildx-action/releases) - [Commits](8d2750c68a...4d04d5d948) Updates `docker/login-action` from 3.7.0 to 4.0.0 - [Release notes](https://github.com/docker/login-action/releases) - [Commits](c94ce9fb46...b45d80f862) Updates `docker/build-push-action` from 6.19.2 to 7.0.0 - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](10e90e3645...d08e5c354a) Updates `github/codeql-action` from 3.32.6 to 4.32.6 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](820e3160e2...0d579ffd05) Updates `actions/setup-node` from 5.0.0 to 6.3.0 - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](a0853c2454...53b83947a5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 6.0.2 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: actions/upload-artifact dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: actions/download-artifact dependency-version: 8.0.1 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: docker/metadata-action dependency-version: 6.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: docker/setup-qemu-action dependency-version: 4.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: docker/setup-buildx-action dependency-version: 4.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: docker/login-action dependency-version: 4.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: docker/build-push-action dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: github/codeql-action dependency-version: 4.32.6 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: actions/setup-node dependency-version: 6.3.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions ... Signed-off-by: dependabot[bot] <support@github.com>
173 lines
5.0 KiB
YAML
173 lines
5.0 KiB
YAML
# Run unitary test
|
|
|
|
name: test
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
|
|
source-code-checks:
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 5
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
|
|
# - name: Check formatting with Ruff
|
|
# uses: chartboost/ruff-action@e18ae971ccee1b2d7bbef113930f00c670b78da4 # v1
|
|
# with:
|
|
# args: 'format --check'
|
|
|
|
- name: Check linting with Ruff
|
|
uses: chartboost/ruff-action@e18ae971ccee1b2d7bbef113930f00c670b78da4 # v1
|
|
with:
|
|
args: 'check'
|
|
|
|
# - name: Static type check
|
|
# run: |
|
|
# echo "Skipping static type check for the moment, too much error...";
|
|
# # pip install pyright
|
|
# # pyright glances
|
|
|
|
|
|
test-linux:
|
|
|
|
needs: source-code-checks
|
|
# https://github.com/actions/runner-images?tab=readme-ov-file#available-images
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 15
|
|
strategy:
|
|
matrix:
|
|
# Python EOL version are note tested
|
|
# Multiple Python version only tested for Linux
|
|
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
cache: 'pip'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
if [ -f dev-requirements.txt ]; then python -m pip install -r dev-requirements.txt; fi
|
|
if [ -f requirements.txt ]; then python -m pip install -r requirements.txt; fi
|
|
|
|
- name: Unitary tests
|
|
run: |
|
|
python -m pytest ./tests/test_core.py
|
|
|
|
test-windows:
|
|
|
|
needs: source-code-checks
|
|
# https://github.com/actions/runner-images?tab=readme-ov-file#available-images
|
|
runs-on: windows-2025
|
|
timeout-minutes: 15
|
|
strategy:
|
|
matrix:
|
|
# Windows-curses not available for Python 3.14 for the moment
|
|
# See https://github.com/zephyrproject-rtos/windows-curses/issues/76
|
|
python-version: ["3.13"]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
cache: 'pip'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
if (Test-Path -PathType Leaf "dev-requirements.txt") { python -m pip install -r dev-requirements.txt }
|
|
if (Test-Path -PathType Leaf "requirements.txt") { python -m pip install -r requirements.txt }
|
|
pip install .
|
|
|
|
- name: Unitary tests
|
|
run: |
|
|
python -m pytest ./tests/test_core.py
|
|
|
|
test-macos:
|
|
|
|
needs: source-code-checks
|
|
# https://github.com/actions/runner-images?tab=readme-ov-file#available-images
|
|
runs-on: macos-15
|
|
timeout-minutes: 15
|
|
strategy:
|
|
matrix:
|
|
# Only test the latest stable version
|
|
python-version: ["3.14"]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
cache: 'pip'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
if [ -f dev-requirements.txt ]; then python -m pip install -r dev-requirements.txt; fi
|
|
if [ -f requirements.txt ]; then python -m pip install -r requirements.txt; fi
|
|
|
|
- name: Unitary tests
|
|
run: |
|
|
python -m pytest ./tests/test_core.py
|
|
|
|
# test-freebsd:
|
|
|
|
# needs: source-code-checks
|
|
# runs-on: ubuntu-latest
|
|
# strategy:
|
|
# matrix:
|
|
# # Only test the latest stable version
|
|
# python-version: ["3.14"]
|
|
# steps:
|
|
|
|
# - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
|
|
# - name: Set up Python ${{ matrix.python-version }}
|
|
# uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
|
|
# with:
|
|
# python-version: ${{ matrix.python-version }}
|
|
# cache: 'pip'
|
|
|
|
# - name: Install dependencies
|
|
# uses: vmactions/freebsd-vm@v1
|
|
# with:
|
|
# usesh: true
|
|
# run: |
|
|
# pkg install -y python3 gcc devel/py-pip
|
|
# python3 --version
|
|
# if [ -f dev-requirements.txt ]; then python3 -m pip install -r dev-requirements.txt; fi
|
|
# if [ -f requirements.txt ]; then python3 -m pip install -r requirements.txt; fi
|
|
|
|
# - name: Unitary tests
|
|
# uses: vmactions/freebsd-vm@v1
|
|
# with:
|
|
# usesh: true
|
|
# run: |
|
|
# python3 -m pytest ./tests/test_core.py
|