From d390c0217d4fd736b7f92f1c7050ae98e1e24e6c Mon Sep 17 00:00:00 2001 From: Enis Arik Date: Sat, 13 Jul 2024 23:19:15 +0300 Subject: [PATCH] Added windows build in github actions. --- .github/workflows/python-app.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index d5064aa..c71a87a 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -37,3 +37,26 @@ jobs: - name: Test with pytest run: | pytest + + build-windows: + runs-on: windows-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python 3.8.10 + uses: actions/setup-python@v3 + with: + python-version: "3.8.10" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 pytest + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Lint with flake8 + run: | + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | + pytest \ No newline at end of file