Rewrite the github workflow to use by gitea
This commit is contained in:
parent
740654b563
commit
fd68c6ebe2
54
.github/workflows/test.yml
vendored
54
.github/workflows/test.yml
vendored
|
@ -1,44 +1,20 @@
|
||||||
name: Blind Test
|
name: Testing
|
||||||
|
on: [push]
|
||||||
on: push
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
default:
|
default:
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
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
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Install dependencies
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
|
||||||
uses: actions/setup-python@v2
|
|
||||||
with:
|
|
||||||
python-version: ${{ matrix.python-version }}
|
|
||||||
- name: Install python dependencies
|
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
apt-get update
|
||||||
pip install wheel
|
apt-get install -yq --no-install-suggests --no-install-recommends \
|
||||||
pip install bandit flake8 pylint
|
python3-dev python3-pip python3-venv python-is-python3
|
||||||
pip install -r requirements.txt
|
pip install setuptools wheel
|
||||||
python setup.py install
|
pip install --upgrade pip tox virtualenv
|
||||||
- name: Lint
|
- name: Check out repository code
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8' }}
|
uses: actions/checkout@v3
|
||||||
run: |
|
- name: Quick lint
|
||||||
# stop the build if there are Python syntax errors or undefined names
|
run: tox -e lint-basic
|
||||||
flake8 minode --count --select=E9,F63,F7,F82 --show-source --statistics
|
- name: Run tests
|
||||||
flake8 minode --count --statistics
|
run: tox
|
||||||
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
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user