Skip to content

Commit 300361c

Browse files
authored
Merge pull request #18 from smartfile/github-actions
GitHub actions
2 parents 0c36b37 + b674204 commit 300361c

2 files changed

Lines changed: 28 additions & 17 deletions

File tree

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI
2+
on: [push, pull_request]
3+
jobs:
4+
test:
5+
strategy:
6+
matrix:
7+
version: [2.7, 3.8]
8+
name: Test
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Install host dependencies
12+
run: sudo apt update && sudo apt install -y libarchive-dev python${{ matrix.version }}-dev
13+
14+
- name: Setup python
15+
uses: actions/setup-python@v4
16+
with:
17+
python-version: ${{ matrix.version }}
18+
19+
- name: Check out code
20+
uses: actions/checkout@v3
21+
22+
- name: Build the library
23+
env:
24+
PYVER: ${{ matrix.version }}
25+
run: make build
26+
27+
- name: Run tests
28+
run: make test

.travis.yml

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

0 commit comments

Comments
 (0)