ソースを参照

fix github action tests

jelle.prins 1 年間 前
コミット
2137a9d3de
3 ファイル変更8 行追加3 行削除
  1. 2 2
      .github/workflows/test.yml
  2. 4 0
      clean_python/__init__.py
  3. 2 1
      pyproject.toml

+ 2 - 2
.github/workflows/test.yml

@@ -4,7 +4,7 @@ name: Linux
 on:
   push:
     branches:
-      - master
+      - main
   pull_request:
 
 jobs:
@@ -39,7 +39,7 @@ jobs:
       - name: Install python dependencies
         run: |
           pip install --disable-pip-version-check --upgrade pip setuptools
-          pip install -e .[test] ${{ matrix.pins }}
+          pip install -e .[dramatiq,fastapi,auth,celery,fluentbit,sql,test] ${{ matrix.pins }}
           pip list
 
       - name: Run tests

+ 4 - 0
clean_python/__init__.py

@@ -29,3 +29,7 @@ from .oauth2.oauth2 import *  # NOQA
 from .sql.sql_gateway import SQLGateway  # NOQA
 from .sql.sql_provider import *  # NOQA
 from .testing.attr_dict import AttrDict  # NOQA
+
+# fmt: off
+__version__ = '0.0.1.dev0'
+# fmt: on

+ 2 - 1
pyproject.toml

@@ -16,7 +16,8 @@ dynamic = ["version"]
 [project.optional-dependencies]
 test = [
     "pytest",
-    "pytest-cov"
+    "pytest-cov",
+    "pytest-asyncio"
 ]
 dramatiq = ["dramatiq"]
 fastapi = ["fastapi"]