From 7a927ace6442a24c98513d151a6784589b819bd9 Mon Sep 17 00:00:00 2001 From: christophkloeffel Date: Wed, 10 Apr 2024 18:40:13 +0200 Subject: [PATCH] adds ci workflow --- .github/workflows/ci.yml | 55 ++++++++++++++++++++++++++++++++++++++++ requirements.txt | 3 +++ 2 files changed, 58 insertions(+) create mode 100644 .github/workflows/ci.yml create mode 100644 requirements.txt diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..b249b92b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,55 @@ +name: LOBSTER CI + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +permissions: + contents: read + +jobs: + + lint: + name: PyLint + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v4 + - name: Set up Python 3.9 + uses: actions/setup-python@v4 + with: + python-version: "3.9" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install pylint pycodestyle + - name: Style check + run: | + make style + - name: Lint + run: | + make lint -o style + + test: + name: Test + strategy: + matrix: + py-version: ["3.8", "3.9", "3.10", "3.11"] + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.py-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.py-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install -r requirements.txt + - name: Executing system tests + run: | + make system-tests + - name: Executing unit tests + run: | + make unit-tests diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..a779853d --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +trlc>=1.2.2 +requests>=2.31.0 +libcst>=1.2.0