From f55dd7ce01d75c258247c3f38c9ed3c3ec6d3d67 Mon Sep 17 00:00:00 2001 From: emiliecowen <123681156+emiliecowen@users.noreply.github.com> Date: Thu, 24 Oct 2024 11:21:43 -0400 Subject: [PATCH] create c3po-test.yml --- .github/workflows/c3po-test.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/c3po-test.yml diff --git a/.github/workflows/c3po-test.yml b/.github/workflows/c3po-test.yml new file mode 100644 index 0000000..7c437a2 --- /dev/null +++ b/.github/workflows/c3po-test.yml @@ -0,0 +1,32 @@ +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: c3po pylint and pytest + +on: [push] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up Python 3.10 + uses: actions/setup-python@v3 + with: + python-version: "3.10" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install pylint + - name: Analysing the code with pylint + run: | + pylint $(git ls-files '*.py') + - name: Test with pytest + run: | + ENVIRONMENT=local pytest --cov