Skip to content

Commit 592bc31

Browse files
authored
Merge pull request #105 from matthewfeickert/ci/add-gha-ci
CI: Add GitHub Actions based CI
2 parents 0a9a30e + 1b49e9b commit 592bc31

File tree

6 files changed

+59
-129
lines changed

6 files changed

+59
-129
lines changed

.github/workflows/ci.yaml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches:
7+
- master
8+
- release/v*
9+
workflow_dispatch:
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
test:
20+
21+
runs-on: ${{ matrix.os }}
22+
# On push events run the CI only on master by default, but run on any branch if the commit message contains '[ci all]'
23+
if: >-
24+
github.event_name != 'push'
25+
|| (github.event_name == 'push' && github.ref == 'refs/heads/master')
26+
|| (github.event_name == 'push' && github.ref != 'refs/heads/master' && contains(github.event.head_commit.message, '[ci all]'))
27+
strategy:
28+
matrix:
29+
os: [ubuntu-latest, macos-latest, windows-latest]
30+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
31+
include:
32+
# Intel runner
33+
- os: macos-15-intel
34+
python-version: '3.13'
35+
36+
steps:
37+
- name: Checkout code
38+
uses: actions/checkout@v5
39+
with:
40+
submodules: "recursive"
41+
42+
- name: Set up Python ${{ matrix.python-version }}
43+
uses: actions/setup-python@v6
44+
with:
45+
python-version: ${{ matrix.python-version }}
46+
47+
- name: Install uv
48+
uses: astral-sh/setup-uv@v7
49+
with:
50+
enable-cache: true
51+
52+
- name: Install tox dependencies
53+
run: uv pip install --system tox tox-uv
54+
55+
- name: Test with tox
56+
run: tox -e py

.travis.yml

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

appveyor.yml

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

tox-bench.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py27,py34,py35,py36,py37
2+
envlist = py39,py310,py311,py312,py313
33

44
[testenv]
55
commands=

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[tox]
2-
envlist = py27,py34,py35,py36,py37,py38
2+
envlist = py39,py310,py311,py312,py313
33

44
[testenv]
55
deps =
66
hypothesis
77
pytest
88
cython
99
commands=
10-
py.test []
10+
pytest []

travis/build-wheels.sh

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

0 commit comments

Comments
 (0)