Skip to content

CI: don't rely on deadsnakes for Ubuntu 18.04. #90

CI: don't rely on deadsnakes for Ubuntu 18.04.

CI: don't rely on deadsnakes for Ubuntu 18.04. #90

Workflow file for this run

name: CI
on:
- push
- pull_request
jobs:
main:
strategy:
matrix:
include:
- python-version: '2.3'
os: debian/eol:sarge
- python-version: '2.4'
os: debian/eol:sarge
- python-version: '2.5'
os: debian/eol:squeeze
- python-version: '2.6'
os: debian/eol:squeeze
- python-version: '2.7'
os: ubuntu:20.04
- python-version: '3.1'
os: debian/squeeze
- python-version: '3.2'
os: debian/wheezy
- python-version: '3.3'
os: ubuntu:13.10
- python-version: '3.4'
os: ubuntu:14.04
- python-version: '3.5'
os: ubuntu:20.04
- python-version: '3.6'
os: ubuntu:20.04
- python-version: '3.7'
os: ubuntu:20.04
- python-version: '3.8'
os: ubuntu:20.04
- python-version: '3.9'
os: ubuntu:20.04
- python-version: '3.10'
os: ubuntu:20.04
- python-version: '3.11'
os: ubuntu:20.04
- python-version: '3.12'
os: ubuntu:20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: build Docker image
run:
docker build --build-arg=image=${{matrix.os}} --build-arg=pyver=${{matrix.python-version}} --tag=test .
- name: run tests
run: |
docker run test
static:
runs-on: ${{matrix.os}}
strategy:
matrix:
include:
- python-version: '2.7'
os: ubuntu-20.04
- python-version: '3.5'
os: ubuntu-20.04
- python-version: '3.6'
os: ubuntu-20.04
- python-version: '3.7'
os: ubuntu-20.04
- python-version: '3.8'
os: ubuntu-20.04
- python-version: '3.9'
os: ubuntu-20.04
- python-version: '3.10'
os: ubuntu-22.04
- python-version: '3.11'
os: ubuntu-22.04
- python-version: '3.12-dev'
os: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: set up Python ${{matrix.python-version}}
if: matrix.python-version != '2.7'
uses: actions/setup-python@v4
with:
python-version: ${{matrix.python-version}}
- name: set up APT
if: matrix.python-version == '2.7'
run: |
printf 'Apt::Install-Recommends "false";\n' | sudo tee -a /etc/apt/apt.conf
sudo apt-get update
- name: set up Python 2.7 (with APT + get-pip)
if: matrix.python-version == '2.7'
run: |
sudo apt-get install -y python-is-python2 python2-dev
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
sudo python get-pip.py
rm get-pip.py
- name: upgrade TLS stack
if: matrix.python-version == '2.7'
run: |
sudo apt-get install --only-upgrade -y ca-certificates libgnutls30
- name: run pydiatra
run: |
pip install pydiatra
python -m pydiatra -v test.py
- name: run pyflakes
run: |
pip install pyflakes
pyflakes test.py
- name: check README syntax
run: |
pip install restructuredtext-lint pygments
rst-lint --level=info --encoding=UTF-8 README
# vim:ts=2 sts=2 sw=2 et