Skip to main content

try to set up github actions

ID
51c2ce1
date
2021-10-25 07:03:54+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
34f5644
message
try to set up github actions
changed files
3 files, 53 additions

Changed files

.github/workflows/main.yml (0) → .github/workflows/main.yml (501)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 0000000..2bfd24c
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,24 @@
+on: push
+
+jobs:
+  test:
+    runs-on: ubuntu-latest
+    timeout-minutes: 10
+
+    steps:
+      - name: Check out repository code
+        uses: actions/checkout@v2
+
+      - name: Setup Python
+        uses: actions/setup-python@v2
+        with:
+          python-version: "3.x"
+
+      - name: Install dependencies
+        run: |
+          pip3 install --user requirements_test.txt
+
+      - name: Run test suite
+        run: |
+          coverage run -m pytest test_concurrently.py
+          coverage report

requirements_test.in (0) → requirements_test.in (11)

diff --git a/requirements_test.in b/requirements_test.in
new file mode 100644
index 0000000..c75c448
--- /dev/null
+++ b/requirements_test.in
@@ -0,0 +1 @@
+pytest-cov

requirements_test.txt (0) → requirements_test.txt (492)

diff --git a/requirements_test.txt b/requirements_test.txt
new file mode 100644
index 0000000..6ca4000
--- /dev/null
+++ b/requirements_test.txt
@@ -0,0 +1,28 @@
+#
+# This file is autogenerated by pip-compile
+# To update, run:
+#
+#    pip-compile requirements_test.in
+#
+attrs==21.2.0
+    # via pytest
+coverage[toml]==6.0.2
+    # via pytest-cov
+iniconfig==1.1.1
+    # via pytest
+packaging==21.0
+    # via pytest
+pluggy==1.0.0
+    # via pytest
+py==1.10.0
+    # via pytest
+pyparsing==3.0.1
+    # via packaging
+pytest-cov==3.0.0
+    # via -r requirements_test.in
+pytest==6.2.5
+    # via pytest-cov
+toml==0.10.2
+    # via pytest
+tomli==1.2.1
+    # via coverage