mirror of
https://github.com/kk7ds/chirp.git
synced 2024-09-21 10:37:15 +00:00
run tests in github actions
This commit is contained in:
parent
59f95e410f
commit
96372ef98d
32
.github/workflows/test.yaml
vendored
Normal file
32
.github/workflows/test.yaml
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
name: Test
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
jobs:
|
||||
test:
|
||||
name: Run all tests
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: install dependencies
|
||||
run: |
|
||||
sudo apt-get remove -y python3-libxml2
|
||||
sudo apt-get install -y libxml2-dev python-dev python-libxml2
|
||||
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
|
||||
python get-pip.py
|
||||
pip --version
|
||||
python -m pip install --upgrade --no-deps --force-reinstall lxml pep8 pyserial
|
||||
- run: python tools/cpep8.py
|
||||
- name: wtf
|
||||
run: |
|
||||
# the test fails with these present
|
||||
rm -fv \
|
||||
tests/images/AnyTone_778UV.img \
|
||||
tests/images/CRT_Micron_UV.img \
|
||||
tests/images/Kenwood_TK-3180K2.img \
|
||||
tests/images/Kenwood_TK-8180.img \
|
||||
tests/images/Kenwood_TM-D710G_CloneMode.img \
|
||||
tests/images/Kenwood_TM-D710_CloneMode.img \
|
||||
tests/images/Midland_DBR2500.img \
|
||||
tests/images/Retevis_RT95.img
|
||||
- run: python tests/run_tests.py
|
Loading…
Reference in New Issue
Block a user