diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index bd947d1..0000000 --- a/.drone.yml +++ /dev/null @@ -1,16 +0,0 @@ -kind: pipeline -type: docker - -steps: - - name: scan_fs - image: registry.nextpertise.tools/nextpertise-proxy/aquasec/trivy:0.14.0 - commands: - - trivy --light fs --quiet --exit-code 1 . - - name: verify - image: registry.nextpertise.tools/nextpertise/python-poetry:3.8 - commands: - - poetry install - - poetry run pytest - - poetry run pylint src || exit 0 # Ignore pylint failures as they are not as important as tests -image_pull_secrets: - - platform_harbor_pull_secrets diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..daa2b95 --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,28 @@ +name: main +on: push + +jobs: + scan_fs: + runs-on: ubuntu-latest + container: + image: aquasec/trivy:0.14.0 + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: scan fs + run: trivy --light fs --quiet --exit-code 1 . + + unittest: + runs-on: ubuntu-latest + container: + image: mwalbeck/python-poetry:1-3.8 + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Run unittest + run: | + poetry install + poetry run pytest + poetry run pylint src test || exit 0 # Ignore pylint failures as they are not as important as tests \ No newline at end of file