Skip to content

Commit

Permalink
Implement Github actions to lint each commit
Browse files Browse the repository at this point in the history
  • Loading branch information
DiddiLeija committed Feb 21, 2024
1 parent 596dd2a commit 64d7a07
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Python CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

env:
FORCE_COLOR: "1"

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, "3.10", "3.11","3.12"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5.0.0
with:
python-version: ${{ matrix.python-version }}
- name: Install pip dependencies
run: |
python -m pip install --upgrade pip setuptools nox
python -m pip install -r requirements.txt
- name: Run linters with Nox
run: |
nox --non-interactive -s lint

0 comments on commit 64d7a07

Please sign in to comment.