Skip to content

Commit 1e97077

Browse files
committed
github workflows: WIP
1 parent d28fd82 commit 1e97077

5 files changed

Lines changed: 33 additions & 18 deletions

File tree

.github/workflows/clippy.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,14 @@ env:
1111

1212
jobs:
1313
clippy-check:
14-
14+
name: Run clippy
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v4
19-
- run: rustup component add clippy
20-
- run: cargo clippy --all-targets --all-features --workspace -- -Dwarnings
18+
- uses: actions/checkout@v4
19+
20+
- name: Update rust
21+
run: rustup update
22+
23+
- name: Run clippy
24+
run: cargo clippy --all-targets --all-features --workspace

.github/workflows/doc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Doc
22
on:
33
push:
4-
branches: [ master ]
4+
tags: [ v* ]
55

66
jobs:
77
doc-build-and-deploy:

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Release
22

33
on:
44
push:
5-
branches: [master, dev]
5+
branches: [ master, dev ]
66
pull_request:
7-
branches: [master]
7+
branches: [ master ]
88
workflow_dispatch:
99

1010
env:
@@ -56,7 +56,7 @@ jobs:
5656
run: |
5757
mkdir -p release/lidi-${{ env.SUFFIX }}
5858
mv artifacts/release/* release/lidi-${{ env.SUFFIX }}/
59-
cp -r LICENSE README.md tools release/lidi-${{ env.SUFFIX }}/
59+
cp -r LICENSE README.md release/lidi-${{ env.SUFFIX }}/
6060
6161
- name: Upload release artifacts
6262
uses: actions/upload-artifact@v4

.github/workflows/tests.yml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,31 @@ env:
1111
CARGO_TERM_COLOR: always
1212

1313
jobs:
14-
build:
14+
tests:
15+
name: Run tests
1516
runs-on: ubuntu-latest
1617

1718
steps:
1819
- uses: actions/checkout@v4
19-
- name: Run tests
20+
21+
- name: Update rust
22+
run: rustup update
23+
24+
- name: Run cargo tests
2025
run: cargo test
21-
- name: Install pip and virtualenv
22-
run: sudo apt install python3-pip python3-virtualenv
26+
27+
- name: Install system dependencies
28+
run: sudo apt install python3-pip python3-virtualenv libfuse2t64
29+
2330
- name: Create virtualenv
2431
run: virtualenv venv
25-
- name: Enter virtualenv
26-
run: source venv/bin/activate
32+
2733
- name: Install python packages
28-
run: pip install behave fusepy psutil
29-
- name: Run integration tests
30-
run: behave --tags=~fail features/simple.feature
34+
run: |
35+
source venv/bin/activate
36+
pip install behave fusepy psutil
37+
38+
- name: Run simple integration tests
39+
run: |
40+
source venv/bin/activate
41+
behave --tags=~fail features/simple.feature

features/throttle_fs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import os
44
import time
55
import multiprocessing
6-
from fusepy import FUSE, Operations
6+
from fuse import FUSE, Operations
77

88
class ThrottledFS(Operations):
99
def __init__(self, root, read_rate_limit):

0 commit comments

Comments
 (0)