From 062b551db6710084025b5da7e1e42536f051d163 Mon Sep 17 00:00:00 2001 From: Aviation Engineer <109074663+YBCA7@users.noreply.github.com> Date: Wed, 20 Mar 2024 23:07:54 +0800 Subject: [PATCH] Create check.yml. --- .github/workflows/check.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/check.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..5cd9e46 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,21 @@ +name: Check + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + 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 + pip install -r requirements.txt + pip install flake8 + - name: Analysing the code with flake8 + run: | + flake8 $(git ls-files '*.py')