Skip to content

Commit

Permalink
Changes for CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmetz committed Sep 25, 2023
1 parent 2c44186 commit e73843a
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/build_tox.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Build from source using tox.
name: build_tox
on: [push, pull_request]
permissions: read-all
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- python-version: '3.7'
toxenv: 'py37'
- python-version: '3.8'
toxenv: 'py38'
- python-version: '3.9'
toxenv: 'py39'
- python-version: '3.10'
toxenv: 'py310'
- python-version: '3.11'
toxenv: 'py311'
- python-version: '3.12'
toxenv: 'py312'
container:
image: ubuntu:22.04
steps:
- uses: actions/checkout@v3
- name: Set up container
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo apt-get update -q
sudo 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: |
sudo add-apt-repository -y universe
sudo add-apt-repository -y ppa:deadsnakes/ppa
sudo add-apt-repository -y ppa:gift/dev
sudo apt-get update -q
sudo apt-get install -y autoconf automake autopoint build-essential git libtool pkg-config python${{ matrix.python-version }} python${{ matrix.python-version }}-dev python${{ matrix.python-version }}-venv python3-distutils python3-pip python3-setuptools
- name: Install tox
run: |
python3 -m pip install tox
- name: Run tests
env:
LANG: en_US.UTF-8
run: |
tox -e${{ matrix.toxenv }}
1 change: 1 addition & 0 deletions setup.cfg.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = liblnk-python
version = @VERSION@
description = Python bindings module for liblnk
long_description = Python bindings module for liblnk
author = Joachim Metz
author_email = [email protected]
license = GNU Lesser General Public License v3 or later (LGPLv3+)
Expand Down

0 comments on commit e73843a

Please sign in to comment.