Debian Codegraph @

.github/workflows/test_docker.yml

raw
1 # Run tests on Fedora and Ubuntu Docker images using GIFT CORP and GIFT PPA on commit
2 name: test_docker
3 on: [push]
4 permissions: read-all
5 jobs:
6 test_fedora:
7 runs-on: ubuntu-latest
8 strategy:
9 matrix:
10 version: ['38']
11 container:
12 image: registry.fedoraproject.org/fedora:${{ matrix.version }}
13 steps:
14 - uses: actions/checkout@v3
15 - name: Set up container
16 run: |
17 dnf install -y dnf-plugins-core langpacks-en
18 - name: Install dependencies
19 run: |
20 dnf copr -y enable @gift/dev
21 dnf install -y @development-tools python3 python3-devel python3-pyyaml python3-setuptools
22 - name: Run tests
23 env:
24 LANG: C.utf8
25 run: |
26 python3 ./run_tests.py
27 - name: Run end-to-end tests
28 run: |
29 if test -f tests/end-to-end.py; then PYTHONPATH=. python3 ./tests/end-to-end.py --debug -c config/end-to-end.ini; fi
30 - name: Build source distribution
31 run: |
32 python3 ./setup.py sdist
33 - name: Build binary distribution
34 run: |
35 python3 ./setup.py bdist
36 - name: Run build and install test
37 run: |
38 python3 ./setup.py build
39 python3 ./setup.py install
40 test_ubuntu:
41 runs-on: ubuntu-latest
42 strategy:
43 matrix:
44 version: ['22.04']
45 container:
46 image: ubuntu:${{ matrix.version }}
47 steps:
48 - uses: actions/checkout@v3
49 - name: Set up container
50 env:
51 DEBIAN_FRONTEND: noninteractive
52 run: |
53 apt-get update -q
54 apt-get install -y libterm-readline-gnu-perl locales software-properties-common
55 locale-gen en_US.UTF-8
56 ln -f -s /usr/share/zoneinfo/UTC /etc/localtime
57 - name: Install dependencies
58 run: |
59 add-apt-repository -y ppa:gift/dev
60 apt-get update -q
61 apt-get install -y build-essential python3 python3-dev python3-distutils python3-setuptools python3-yaml
62 - name: Run tests
63 env:
64 LANG: en_US.UTF-8
65 run: |
66 python3 ./run_tests.py
67 - name: Run end-to-end tests
68 env:
69 LANG: en_US.UTF-8
70 run: |
71 if test -f tests/end-to-end.py; then PYTHONPATH=. python3 ./tests/end-to-end.py --debug -c config/end-to-end.ini; fi
72 - name: Build source distribution
73 run: |
74 python3 ./setup.py sdist
75 - name: Build binary distribution
76 run: |
77 python3 ./setup.py bdist
78 - name: Run build and install test
79 run: |
80 python3 ./setup.py build
81 python3 ./setup.py install