Skip to content

Commit

Permalink
Update ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tschumpr committed Mar 25, 2024
1 parent 7f4db95 commit 5358273
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,34 @@ name: CI

on:
push:
branches-ignore:
- "mark-version-*-as-released"

jobs:
ci:
runs-on: ubuntu-latest
name: Build and run tests
name: Code analysis and tests

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint black
pip install -r requirements.txt
- name: Lint with pylint
uses: Silleellie/pylint-github-action@v2
with:
lint-path: src
python-version: "3.11"
run: |
pylint $(git ls-files '*.py')
- name: Check formatting with black
uses: psf/black@stable
run: |
black $(git ls-files '*.py') --diff
- name: Tests
run: |
python -m unittest discover -s tests -p "test_*.py"

0 comments on commit 5358273

Please sign in to comment.