File: check-full.yml

package info (click to toggle)
grml2usb 0.20.10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 680 kB
  • sloc: python: 1,500; sh: 330; asm: 225; makefile: 70
file content (46 lines) | stat: -rw-r--r-- 1,073 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Code Testing
on:
  workflow_dispatch:
  pull_request:
  push:
  schedule:
    - cron: '42 1 * * *'

concurrency:
  group: "codecheck-${{ github.ref }}"
  cancel-in-progress: true
jobs:
  codecheck:
    runs-on: ubuntu-latest
    name: Run codecheck

    steps:
      - name: Checkout source
        uses: actions/checkout@v5

      - name: pip install wheel (to make install black work)
        run: pip3 install wheel

      - name: pip install flake8, isort + black, vulture
        run: pip3 install flake8 isort black vulture

      - name: Codecheck execution
        run: make codecheck

  unittests:
    runs-on: ubuntu-latest
    name: Run unit tests as root

    steps:
      - name: Checkout source
        uses: actions/checkout@v5

      - name: Install pytest and deps
        run: sudo apt install python3-pytest python3-parted syslinux grub-efi-amd64-signed grub2-common parted curl nasm make

      - name: Compile mbr
        run: make -C mbr

      # tests need root, as they manage loopdevs etc.
      - name: Run Pytest
        run: sudo pytest-3