Skip to content

Commit

Permalink
Splitting tests.yml (sotopia-lab#102)
Browse files Browse the repository at this point in the history
* πŸ‘· improve CI by splitting tests.yml

* πŸ’š add [dev] to pip

* πŸ‘· name of ci
  • Loading branch information
ProKil authored Aug 18, 2023
1 parent c987f4a commit 5067e02
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 11 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Mypy
on: [push]

jobs:
Static-Type-Checking:
runs-on: ubuntu-latest
strategy:
max-parallel: 5

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11.2
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
pip install -e .[dev]
- name: Type-checking package with mypy
run: |
# Manually install mypy in the standard way.
pip --quiet install -U mypy
# Log this mypy version for debuggability.
mypy --version
# Run this mypy instance against our main package.
mypy --install-types --non-interactive sotopia
mypy --strict .
13 changes: 2 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Python Package Pytest
name: Pytest
on: [push]

jobs:
test-all:
Pytest:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
Expand All @@ -18,15 +18,6 @@ jobs:
pip install --upgrade pip
pip install -r requirements.txt
pip install -e .[dev]
- name: Type-checking package with mypy
run: |
# Manually install mypy in the standard way.
pip --quiet install -U mypy
# Log this mypy version for debuggability.
mypy --version
# Run this mypy instance against our main package.
mypy --install-types --non-interactive sotopia
mypy --strict .
- name: Test with pytest
env: # Or as an environment variable
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
Expand Down

0 comments on commit 5067e02

Please sign in to comment.