Skip to content

Commit 277dd54

Browse files
committed
updated CI
1 parent 2b5a133 commit 277dd54

2 files changed

Lines changed: 36 additions & 15 deletions

File tree

.github/workflows/python-ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# .github/workflows/python-ci.yml
2+
name: Python CI
3+
4+
on:
5+
push:
6+
branches: [ master ]
7+
pull_request:
8+
branches: [ master ]
9+
10+
jobs:
11+
build-and-test:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Set up Python 3.12
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: "3.12"
21+
22+
- name: Install Poetry
23+
run: |
24+
pipx install poetry
25+
26+
- name: Install dependencies
27+
run: |
28+
poetry install
29+
30+
- name: Build Cython extension in place
31+
run: |
32+
poetry run python setup.py build_ext --inplace
33+
34+
- name: Run tests
35+
run: |
36+
poetry run pytest cython_example_proj

.travis.yml

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

0 commit comments

Comments
 (0)