forked from stratis-storage/stratisd
-
Notifications
You must be signed in to change notification settings - Fork 0
107 lines (103 loc) · 2.94 KB
/
weekly.yml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
---
name: stratisd weekly
# yamllint disable-line rule:truthy
on:
schedule:
- cron: 15 3 * * 1
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
next-fedora-python-checks:
continue-on-error: true
strategy:
matrix:
include:
# PYTHON CHECKS ON NEXT FEDORA PYTHON AND PYTHON TOOLS VERSION
- dependencies: >
pylint
python3-dbus-client-gen
python3-dbus-python-client-gen
python3-justbytes
python3-psutil
python3-pyudev
python3-semantic_version
task: PYTHONPATH=./src make -f Makefile lint
working-directory: ./tests/client-dbus
- dependencies: black python3-isort
task: make -f Makefile fmt-ci
working-directory: ./tests/client-dbus
- dependencies: yamllint tmt
task: make -f Makefile yamllint tmtlint
working-directory: .
- dependencies: shfmt
task: make -f Makefile fmt-shell-ci
working-directory: .
runs-on: ubuntu-latest
container: fedora:39 # NEXT DEVELOPMENT ENVIRONMENT
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: >
dnf install -y
make
ncurses
python-unversioned-command
${{ matrix.dependencies }}
- name: Display Python version
run: python --version
- name: ${{ matrix.task }}
run: ${{ matrix.task }}
working-directory: ${{ matrix.working-directory }}
legacy-audit-checks:
continue-on-error: true
strategy:
matrix:
include:
- tag: stratisd-v3.5.8
- tag: v3.5.7
- tag: v3.5.6
- tag: v3.5.5
- tag: v3.5.4
- tag: v3.5.3
- tag: v3.5.2
- tag: v3.5.1
- tag: v3.5.0
- tag: v3.4.4
- tag: v3.4.3
- tag: v3.4.2
- tag: v3.4.1
- tag: v3.4.0
- tag: v3.3.0
- tag: v3.2.0
- tag: v3.1.0
- tag: v3.0.0
runs-on: ubuntu-22.04
container:
image: fedora:38 # CURRENT DEVELOPMENT ENVIRONMENT
options: --privileged -v /dev:/dev
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: tags/${{ matrix.tag }}
- name: Install dependencies for Fedora
run: >
dnf install -y
clang
curl
cryptsetup-devel
dbus-devel
libblkid-devel
make
ncurses
openssl-devel
systemd-devel
- uses: dtolnay/rust-toolchain@master
with:
components: cargo
toolchain: 1.73.0 # CURRENT DEVELOPMENT RUST TOOLCHAIN
- uses: baptiste0928/cargo-install@v2
with:
crate: cargo-audit
- name: Run audit task on ${{ matrix.tag }}
run: make -f Makefile audit