Repository: dayyass/pytorch-ner (language: python)

Issue:
fix ci
- convert to one file with different jobs
- add windows and macOS support


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/lint.yml b/.github/linter.yml
similarity index 76%
rename from .github/workflows/lint.yml
rename to .github/linter.yml
index 6bad47b..1740475 100644
--- a/.github/workflows/lint.yml
+++ b/.github/linter.yml
@@ -1,26 +1,29 @@
-# This workflow will install Python dependencies, run tests and lint with a single version of Python
+# This workflow will install Python dependencies and run linter
 # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
 
-name: lint
+name: linter
 
 on:
   push:
-    branches: [ main ]
+    branches: [main, develop]
   pull_request:
-    branches: [ main ]
+    branches: [main, develop]
 
 jobs:
   build:
-    runs-on: ubuntu-latest
+    runs-on: ${{ matrix.os }}
+    strategy:
+      matrix:
+        os: [ubuntu-latest]
     steps:
     - uses: actions/checkout@v2
-    - name: Set up Python 3.8
+    - name: Set up Python
       uses: actions/setup-python@v2
       with:
-        python-version: 3.8
+        python-version: 3.7
     - name: Install dependencies
       run: |
-        python -m pip install --upgrade pip
+        pip install --upgrade pip
         pip install isort black flake8 types-PyYAML mypy
     - name: Code format check with isort
       run: |


Test patch:
diff --git a/.github/workflows/test.yml b/.github/tests.yml
similarity index 51%
rename from .github/workflows/test.yml
rename to .github/tests.yml
index e3c58bd..0ba4206 100644
--- a/.github/workflows/test.yml
+++ b/.github/tests.yml
@@ -1,32 +1,31 @@
-# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
+# This workflow will install Python dependencies and run tests with a variety of Python versions
 # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
 
-name: test
+name: tests
 
 on:
   push:
-    branches: [ main ]
+    branches: [main, develop]
   pull_request:
-    branches: [ main ]
+    branches: [main, develop]
 
 jobs:
   build:
     runs-on: ${{ matrix.os }}
     strategy:
       matrix:
-        python-version: ['3.6', '3.7', '3.8']
-        os: [ubuntu-latest]  # macOS-latest, windows-latest
+        python-version: ['3.6', '3.7', '3.8', '3.9']
+        os: [ubuntu-latest, macOS-latest, windows-latest]
     steps:
     - uses: actions/checkout@v2
-    - name: Set up Python ${{ matrix.python-version }}
+    - name: Set up Python
       uses: actions/setup-python@v2
       with:
         python-version: ${{ matrix.python-version }}
     - name: Install dependencies
       run: |
-        python -m pip install --upgrade pip
-        python -m pip install pytest
+        pip install --upgrade pip
         pip install -r requirements.txt
-    - name: Test with pytest
+    - name: Tests
       run: |
-        pytest
+        python -m unittest discover