From 6e7f56e30d04c5d1e31693bd1386d87d27e39bfc Mon Sep 17 00:00:00 2001 From: drons Date: Mon, 4 Nov 2024 19:51:01 +0300 Subject: [PATCH] Move CI to github actions --- .github/workflows/main.yml | 43 ++++++++++++++++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..13b0f2d --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,43 @@ +name: Analyze + +on: + push: + branches: [ '**' ] + pull_request: + branches: [ master ] + +jobs: + bandit: + runs-on: ubuntu-24.04 + name: bandit + steps: + - uses: actions/checkout@v2 + - name: install + run: | + sudo apt update + sudo apt upgrade + sudo apt install python3 + - name: info + run: | + python3 --version + - name: bandit + run: | + pip install bandit + bandit ./world-dl.py + pylint: + runs-on: ubuntu-24.04 + name: pylint + steps: + - uses: actions/checkout@v2 + - name: install + run: | + sudo apt update + sudo apt upgrade + sudo apt install python3 libgdal-dev + - name: info + run: | + python3 --version + - name: pylint + run: | + pip install "pylint" "numpy < 2.0.0" "requests" "argparse" "pysqlite3" "GDAL[numpy]==3.8.4" "tqdm" + pylint --disable=old-style-class --module-naming-style=any ./world-dl.py \ No newline at end of file diff --git a/README.md b/README.md index 39aaa9b..5b3c2b1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ [![codefactor.io](https://www.codefactor.io/repository/github/drons/world-dl/badge?style=flat-square)](https://www.codefactor.io/repository/github/drons/world-dl) [![codecov](https://codecov.io/gh/drons/world-dl/branch/master/graph/badge.svg)](https://codecov.io/gh/drons/world-dl) -[![Build Status](https://ci.appveyor.com/api/projects/status/github/drons/world-dl?branch=master&svg=true)](https://ci.appveyor.com/project/drons/nbody/world-dl/master) +[![Build Status](https://github.com/drons/world-dl/actions/workflows/main.yml/badge.svg?branch=master](https://github.com/drons/world-dl/actions/workflows) # Imagery download tool from web image services ## How to run