Added Mac OS artifact definitions (#572) #75
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run docs tox tests on Ubuntu Docker images using GIFT PPA | |
name: test_docs | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
permissions: read-all | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- python-version: '3.11' | |
toxenv: 'docs' | |
container: | |
image: ubuntu:22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up container | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
run: | | |
apt-get update -q | |
apt-get install -y libterm-readline-gnu-perl locales software-properties-common | |
locale-gen en_US.UTF-8 | |
ln -f -s /usr/share/zoneinfo/UTC /etc/localtime | |
- name: Install dependencies | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
run: | | |
add-apt-repository -y universe | |
add-apt-repository -y ppa:deadsnakes/ppa | |
add-apt-repository -y ppa:gift/dev | |
apt-get update -q | |
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 | |
- name: Install tox | |
run: | | |
python3 -m pip install tox | |
- name: Run tests | |
env: | |
LANG: en_US.UTF-8 | |
run: | | |
tox -e${{ matrix.toxenv }} |