-
-
Notifications
You must be signed in to change notification settings - Fork 6
59 lines (46 loc) · 1.38 KB
/
test.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
---
name: Checking code functionality
on: [push, pull_request]
jobs:
ci-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- tox-env: "py312-dist"
container: "fedora:40"
- tox-env: "py313-dist"
container: "fedora:41"
container: ${{ matrix.container }}
steps:
- name: Checkout the codebase current state
uses: actions/checkout@v4
- name: Update the existing packages
run: |
dnf update --refresh --assumeyes
- name: Install the supporting dependencies
run: |
dnf install \
libglvnd-egl \
dbus-libs \
libxkbcommon-x11 \
libxkbcommon \
xcb-util \
xcb-util-image \
xcb-util-renderutil \
xcb-util-cursor \
xcb-util-keysyms \
xcb-util-wm \
xorg-x11-server-Xvfb \
tesseract \
python3-pip \
fontconfig \
--assumeyes \
--setopt=install_weak_deps=False
- name: Install the base dependencies
run: |
python3 -m pip install --upgrade poetry tox
- name: Check the functionality of the code
run: |
tox -e ${{ matrix.tox-env }}