Skip to content

Commit 3bac406

Browse files
author
Sébastien Delafond
committed
Travis -> GitHub Actions
1 parent 269413b commit 3bac406

2 files changed

Lines changed: 37 additions & 25 deletions

File tree

.github/workflows/python.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Python package
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-20.04
8+
9+
strategy:
10+
matrix:
11+
python-version: ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Set up Python ${{ matrix.python-version }}
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
21+
- name: Display Python version
22+
run: python -c "import sys; print(sys.version)"
23+
24+
- name: Install Python build dependencies
25+
run: python -m pip install --upgrade pip setuptools wheel
26+
27+
- name: Install libfuse-dev and pkg-config
28+
run: sudo apt install -y libfuse-dev pkg-config
29+
30+
- name: Build
31+
run: python setup.py install
32+
33+
- name: Test
34+
run: |
35+
sudo modprobe fuse
36+
mkdir /tmp/foo && python example/hello.py /tmp/foo && [ "$(cat /tmp/foo/hello)" = "Hello World!" ]
37+
mkdir /tmp/bar && python example/fioc.py /tmp/bar && [ -f /tmp/bar/fioc ]

.travis.yml

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

0 commit comments

Comments
 (0)