瀏覽代碼

Merge pull request #1 from apkallum/test-actions

feat: test github actions
Apkallum 5 年之前
父節點
當前提交
54be47525f
共有 1 個文件被更改,包括 25 次插入0 次删除
  1. 25 0
      .github/workflows/test.yml

+ 25 - 0
.github/workflows/test.yml

@@ -0,0 +1,25 @@
+name: Test workflow
+on: [push]
+
+jobs:
+  test:
+    runs-on: ubuntu-latest
+
+    steps:
+      - uses: actions/checkout@v1
+        with:
+          fetch-depth: 1
+
+      - name: Set up Python 3.7
+        uses: actions/setup-python@v1
+        with:
+          python-version: 3.7
+          architecture: x64
+      
+      - name: Install dependencies
+        run: |
+          pip install -e .[dev]
+
+      - name: Test with pytest
+        run: |
+          pytest -s