Skip to content

Commit

Permalink
Fixed flake dependency, added windows and mac tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMariday committed Feb 22, 2024
1 parent 5b069c2 commit 4813a34
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ jobs:
with:
python-version: 3.9

- name: Install flake
run: |
python -m pip install --upgrade pip
pip install flake8
- name: Flake 8 Syntax Errors
run: |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/test_mac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: MacOS

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

permissions:
contents: read

jobs:
build:
runs-on: macos-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
pip install -r requirements.txt
- name: Pytest
run: |
pytest .
34 changes: 34 additions & 0 deletions .github/workflows/test_windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Windows

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

permissions:
contents: read

jobs:
build:
runs-on: windows-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
pip install -r requirements.txt
- name: Pytest
run: |
pytest .

0 comments on commit 4813a34

Please sign in to comment.