From 1fb82ad71050dceebe7cb52aff4a48827b9ba8f0 Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Wed, 25 May 2022 10:47:06 +0200 Subject: [PATCH] Run unittests automatically --- .github/workflows/unittests.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+), 0 deletions(-) create mode 100644 .github/workflows/unittests.yml diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml new file mode 100644 index 0000000..4543663 --- /dev/null +++ b/.github/workflows/unittests.yml @@ -0,0 +1,24 @@ +name: Python package + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.9"] + + 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: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Test with unittests + run: | + python -m unittest discover \ No newline at end of file -- libgit2 0.21.4