Skip to content

Commit 0e7ff52

Browse files
committed
Replace Travis CI with GitHub Actions
1 parent d974e79 commit 0e7ff52

2 files changed

Lines changed: 39 additions & 42 deletions

File tree

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ${{ matrix.os }}
8+
9+
strategy:
10+
matrix:
11+
os: [ubuntu-latest, macos-latest]
12+
13+
steps:
14+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
15+
16+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
17+
with:
18+
python-version: '3.12'
19+
20+
- name: Install system dependencies
21+
if: runner.os == 'Linux'
22+
run: sudo apt-get install -y gcc libssl-dev libsqlite3-dev uuid-dev
23+
24+
- name: Install tox
25+
run: pip install tox
26+
27+
- name: Build
28+
run: make DEBUG=1
29+
30+
- name: Test
31+
run: make test USE_DEFAULT_ENTRY_POINT=1
32+
33+
- name: Coverage
34+
if: runner.os == 'Linux'
35+
run: gcov src/uuid.c
36+
37+
- name: Upload coverage
38+
if: runner.os == 'Linux'
39+
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0

.travis.yml

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

0 commit comments

Comments
 (0)