Forgot to add requirements.txt... #57
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
name: CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.11"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
sudo apt install build-essential libdbus-glib-1-dev libgirepository1.0-dev libcairo2-dev | |
python -m pip install --upgrade pip | |
python -m pip install pylint pytest git+https://github.com/brendan-w/python-OBD#egg=obd | |
pip install backend/ | |
- name: Analyzing the backend with pylint | |
run: | | |
python -m pylint backend/pilot_drive | |
- name: Testing the backend with pytest | |
run: | | |
python -m pytest backend/ | |