Skip to content

Commit

Permalink
removed matrix-os and separated lint
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMariday committed Feb 22, 2024
1 parent 0b0afc5 commit 5b069c2
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 11 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Style

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

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9

- name: Flake 8 Syntax Errors
run: |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Flake 8 Syntax Warnings
run: |
flake8 . --count --statistics
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build
name: Ubuntu

on:
push:
Expand All @@ -11,10 +11,9 @@ permissions:

jobs:
build:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
Expand All @@ -30,14 +29,6 @@ jobs:
pip install flake8 pytest
pip install -r requirements.txt
- name: Flake 8 Syntax Errors
run: |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Flake 8 Syntax Warnings
run: |
flake8 . --count --statistics
- name: Pytest
run: |
pytest .

0 comments on commit 5b069c2

Please sign in to comment.