From fd68c6ebe22c147b56c39cb9457882bbfe56f68c Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Tue, 27 Feb 2024 18:10:31 +0200 Subject: [PATCH] Rewrite the github workflow to use by gitea --- .github/workflows/test.yml | 56 +++++++++++--------------------------- 1 file changed, 16 insertions(+), 40 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2399077..71a97bb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,44 +1,20 @@ -name: Blind Test - -on: push +name: Testing +on: [push] jobs: default: - - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: [ubuntu-latest, macos-latest] - python-version: [3.8] - include: - - os: ubuntu-latest - python-version: 3.9 - + runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - name: Install python dependencies - run: | - python -m pip install --upgrade pip - pip install wheel - pip install bandit flake8 pylint - pip install -r requirements.txt - python setup.py install - - name: Lint - if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8' }} - run: | - # stop the build if there are Python syntax errors or undefined names - flake8 minode --count --select=E9,F63,F7,F82 --show-source --statistics - flake8 minode --count --statistics - pylint minode --exit-zero --rcfile=tox.ini - bandit -r --exit-zero -x tests minode - - name: Test - run: | - export PYTHONWARNINGS=all - coverage run -a -m tests - - name: Summary - run: coverage report + - name: Install dependencies + run: | + apt-get update + apt-get install -yq --no-install-suggests --no-install-recommends \ + python3-dev python3-pip python3-venv python-is-python3 + pip install setuptools wheel + pip install --upgrade pip tox virtualenv + - name: Check out repository code + uses: actions/checkout@v3 + - name: Quick lint + run: tox -e lint-basic + - name: Run tests + run: tox