Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move linting to GitHub actions #17

Merged
merged 11 commits into from
Dec 26, 2024
23 changes: 23 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Linting
on: push
jobs:
python-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: psf/black@stable
with:
src: "test"
# Needed by pyright
- uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
- run: |
pip install -r test/requirements.txt
- uses: jakebailey/pyright-action@v2
with:
working-directory: test
- uses: isort/isort-action@v1
with:
sort-paths: "test"
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
name: gitlab-ci

on: [ push, pull_request, workflow_dispatch ]

name: "Test Ne16 (GitLab)"
on: pull_request
jobs:
gitlab-ci:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-neureka.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Test Neureka
on: push
on: pull_request
jobs:
test:
runs-on: ubuntu-latest
Expand Down
22 changes: 0 additions & 22 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,8 @@
# SPDX-License-Identifier: Apache-2.0

stages:
- lint
- test

python_format:
stage: lint
tags:
- python-lint
script:
- black --check .

python_sort_imports:
stage: lint
tags:
- python-lint
script:
- isort --check test

python_static_check:
stage: lint
tags:
- python-lint
script:
- pyright .

run_ne16_test:
stage: test
tags:
Expand Down
File renamed without changes.
Loading