-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chroe: unit test action on dev branch
- Loading branch information
Showing
2 changed files
with
34 additions
and
3 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
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,33 @@ | ||
name: Unit Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build-and-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.x' | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update -y | ||
sudo apt-get install socat -y | ||
python -m pip install --upgrade pip | ||
pip install poetry | ||
poetry export -f requirements.txt --output requirements.txt --dev --without-hashes | ||
pip install -r requirements.txt | ||
- name: Build Extensions | ||
run: | | ||
python setup.py build_ext --inplace | ||
- name: Run tests with coverage | ||
run: | | ||
pytest --cov=async_pyserial --cov-report=xml --cov-report=term |