-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use uv for build * Separate into submodules * Add first test
- Loading branch information
Showing
29 changed files
with
1,964 additions
and
2,045 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,54 @@ | ||
name: Continuous Integration | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
env: | ||
LSL_RELEASE_URL: "https://github.com/sccn/liblsl/releases/download/" | ||
LSL_RELEASE: "1.16.2" | ||
|
||
jobs: | ||
|
||
style: | ||
name: Check style | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: astral-sh/ruff-action@v1 | ||
- uses: astral-sh/ruff-action@v1 | ||
with: | ||
args: "format --check" | ||
|
||
test: | ||
needs: style | ||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
os: ["ubuntu-latest", "windows-latest", "macOS-latest"] | ||
|
||
name: Run tests (${{ matrix.os }} Python ${{ matrix.python-version }}) | ||
runs-on: ${{ matrix.config.os }} | ||
steps: | ||
- name: Install liblsl (MacOS) | ||
if: matrix.os == 'macos-latest' | ||
run: brew install labstreaminglayer/tap/lsl | ||
- name: Install liblsl (Ubuntu) | ||
if: startsWith(matrix.os, 'ubuntu-') | ||
run: | | ||
sudo apt install -y libpugixml-dev | ||
curl -L ${LSL_RELEASE_URL}/v${LSL_RELEASE}/liblsl-${LSL_RELEASE}-$(lsb_release -sc)_amd64.deb -o liblsl.deb | ||
sudo apt install ./liblsl.deb | ||
- uses: actions/checkout@v4 | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }}) | ||
- name: Build | ||
run: uv sync --all-extras | ||
- name: Run tests | ||
run: uv run pytest |
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
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.