Debian Codegraph @

.github/workflows/test_docs.yml

raw
1 # Run docs tox tests on Ubuntu Docker images using GIFT PPA
2 name: test_docs
3 on:
4 pull_request:
5 branches:
6 - main
7 push:
8 branches:
9 - main
10 permissions: read-all
11 jobs:
12 build:
13 runs-on: ubuntu-latest
14 strategy:
15 matrix:
16 include:
17 - python-version: '3.11'
18 toxenv: 'docs'
19 container:
20 image: ubuntu:22.04
21 steps:
22 - uses: actions/checkout@v3
23 - name: Set up container
24 env:
25 DEBIAN_FRONTEND: noninteractive
26 run: |
27 apt-get update -q
28 apt-get install -y libterm-readline-gnu-perl locales software-properties-common
29 locale-gen en_US.UTF-8
30 ln -f -s /usr/share/zoneinfo/UTC /etc/localtime
31 - name: Install dependencies
32 env:
33 DEBIAN_FRONTEND: noninteractive
34 run: |
35 add-apt-repository -y universe
36 add-apt-repository -y ppa:deadsnakes/ppa
37 add-apt-repository -y ppa:gift/dev
38 apt-get update -q
39 apt-get install -y build-essential git libffi-dev python${{ matrix.python-version }} python${{ matrix.python-version }}-dev python${{ matrix.python-version }}-venv python3-distutils python3-pip python3-setuptools python3-yaml
40 - name: Install tox
41 run: |
42 python3 -m pip install tox
43 - name: Run tests
44 env:
45 LANG: en_US.UTF-8
46 run: |
47 tox -e${{ matrix.toxenv }}