X-Git-Url: https://git.grml.org/?p=grml2usb.git;a=blobdiff_plain;f=.github%2Fworkflows%2Fcheck-full.yml;fp=.github%2Fworkflows%2Fcheck-full.yml;h=91d5ab6a7aa83e8f4d9126c1763b32933c8a85d3;hp=0000000000000000000000000000000000000000;hb=a5f57b0cb1685060817004b9d66ca1dfa0728b78;hpb=7cda8fa07780825c0819ed81a836554a69349afa diff --git a/.github/workflows/check-full.yml b/.github/workflows/check-full.yml new file mode 100644 index 0000000..91d5ab6 --- /dev/null +++ b/.github/workflows/check-full.yml @@ -0,0 +1,57 @@ +name: Code Testing + +on: + push: + pull_request: + schedule: + - cron: '42 1 * * *' + +jobs: + codecheck: + runs-on: ubuntu-latest + name: Run codecheck + + steps: + - name: Checkout source + uses: actions/checkout@v2 + + - name: Install virtualenv + python3-setuptools + run: sudo apt-get install virtualenv python3-setuptools + + - name: Set up Python virtualenv environment + run: virtualenv -p /usr/bin/python3 venv3 + + - name: Activate Python virtualenv environment + run: . ./venv3/bin/activate + + - name: pip install wheel (to make install black work) + run: pip3 install wheel + + - name: pip install flake8, isort + black, vulture + run: pip3 install flake8 isort black vulture + + - name: Codecheck execution + run: make codecheck + + unittests: + runs-on: ubuntu-latest + name: Run unit tests + + steps: + - name: Checkout source + uses: actions/checkout@v2 + + - name: Install virtualenv + python3-setuptools + run: sudo apt-get install virtualenv python3-setuptools + + - name: Set up Python virtualenv environment + run: virtualenv -p /usr/bin/python3 venv3 + + - name: Activate Python virtualenv environment + run: . ./venv3/bin/activate + + - name: Install pytest + run: pip3 install pytest + + - name: Run Pytest + run: pytest