aboutsummaryrefslogtreecommitdiffstats
path: root/.gitea/workflows
diff options
context:
space:
mode:
authorAstound <kirito@disroot.org>2024-07-15 10:39:00 +0800
committerAstound <kirito@disroot.org>2024-07-15 10:39:00 +0800
commit4e327944a0cf5ae7571e7231854c8e6cb169cc53 (patch)
treecad9e881cb5d795897cdaea459056d3ee9ce3f7b /.gitea/workflows
parent09a437f7fb2fa62a3a1fe3a9bade92371a99ca10 (diff)
downloadyt-local-4e327944a0cf5ae7571e7231854c8e6cb169cc53.tar.lz
yt-local-4e327944a0cf5ae7571e7231854c8e6cb169cc53.tar.xz
yt-local-4e327944a0cf5ae7571e7231854c8e6cb169cc53.zip
Add CI
Diffstat (limited to '.gitea/workflows')
-rw-r--r--.gitea/workflows/ci.yaml23
1 files changed, 23 insertions, 0 deletions
diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml
new file mode 100644
index 0000000..d27f068
--- /dev/null
+++ b/.gitea/workflows/ci.yaml
@@ -0,0 +1,23 @@
+name: CI
+
+on: [push, pull_request]
+
+jobs:
+ test:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v4
+
+ - name: Set up Python
+ uses: actions/setup-python@v5
+ with:
+ python-version: 3.11
+
+ - name: Install dependencies
+ run: |
+ pip install --upgrade pip
+ pip install -r requirements-dev.txt
+
+ - name: Run tests
+ run: pytest