Skip to content

Commit 4d0d9b4

Browse files
committed
Enbale github actions run on tox
1 parent cd2d93b commit 4d0d9b4

File tree

2 files changed

+59
-13
lines changed

2 files changed

+59
-13
lines changed

.github/workflows/ci.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# .github/workflows/ci.yml
2+
name: CI
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
tox:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
python: ["3.6", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
14+
include:
15+
# Older CPythons live on Debian Buster images
16+
- python: "3.6"
17+
image: "python:3.6-buster"
18+
# Current releases use Debian Bookworm images
19+
- python: "3.9"
20+
image: "python:3.9-bookworm"
21+
- python: "3.10"
22+
image: "python:3.10-bookworm"
23+
- python: "3.11"
24+
image: "python:3.11-bookworm"
25+
- python: "3.12"
26+
image: "python:3.12-bookworm"
27+
- python: "3.13"
28+
image: "python:3.13-bookworm"
29+
- python: "3.14"
30+
image: "python:3.14-rc-bookworm"
31+
32+
# Run each matrix entry *inside* the chosen Python image
33+
container:
34+
image: ${{ matrix.image }}
35+
36+
steps:
37+
- uses: actions/checkout@v4
38+
39+
# Cache pip inside the container filesystem
40+
- name: Set up pip cache
41+
uses: actions/cache@v4
42+
with:
43+
path: |
44+
~/.cache/pip
45+
key: ${{ runner.os }}-pip-${{ matrix.python }}-${{ hashFiles('**/pyproject.toml', '**/requirements*.txt', 'tox.ini', 'setup.cfg', 'setup.py') }}
46+
restore-keys: |
47+
${{ runner.os }}-pip-${{ matrix.python }}-
48+
49+
- name: Show Python
50+
run: python -V && which python && pip -V
51+
52+
- name: Upgrade pip & install tox
53+
run: |
54+
python -m pip install --upgrade pip
55+
pip install tox
56+
57+
- name: Run tox for current interpreter
58+
run: tox -e py
59+

.travis.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)