-
-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Scaphandre Python binding with the first version of the PowercapR…
…APL sensor
- Loading branch information
Showing
21 changed files
with
2,725 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: python_build | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
defaults: | ||
run: | ||
working-directory: ./python | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
- name: Check Python | ||
run: | | ||
pip install black isort mypy | ||
make check-python | ||
- name: Install minimal stable with clippy and rustfmt | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: default | ||
toolchain: stable | ||
override: true | ||
- name: Check Rust | ||
run: make check-rust | ||
|
||
test: | ||
name: Python Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install latest nightly | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
override: true | ||
components: rustfmt, clippy | ||
|
||
- uses: Swatinem/rust-cache@v1 | ||
|
||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.7" | ||
|
||
- name: Build and install scaphandre | ||
run: | | ||
pip install virtualenv | ||
virtualenv venv | ||
source venv/bin/activate | ||
make develop | ||
- name: Run tests | ||
run: | | ||
source venv/bin/activate | ||
make unit-test | ||
- name: Build Sphinx documentation | ||
run: | | ||
source venv/bin/activate | ||
make build-documentation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# venv | ||
venv | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
/target | ||
|
||
# Unit test / coverage reports | ||
.coverage | ||
.pytest_cache/ | ||
|
||
# mypy | ||
.mypy_cache/ | ||
|
||
# sphinx build directory | ||
docs/build | ||
|
||
*.so |
Oops, something went wrong.