From 88a106665021be99729fd6a94501544c7a778185 Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Sat, 19 Oct 2024 05:52:18 -0400 Subject: [PATCH] ci(build): gitea actions --- .gitea/workflows/build.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .gitea/workflows/build.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..8d3b4a6 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,30 @@ +--- +name: build +on: + - push + - pull_request + +jobs: + build: + container: + image: focs.ji.sjtu.edu.cn:5000/gitea/runner-images:ubuntu-latest + steps: + - name: Check out repository code + uses: https://gitea.com/BoYanZh/checkout@focs + - name: Display Python3 version + run: python3 --version + - name: Install PDM + run: curl -sSL https://pdm-project.org/install-pdm.py | python3 - + - name: Display PDM version + run: pdm --version + - name: PDM install dependencies + run: pdm install + - name: Lint + run: | + pdm run lint + - name: Test + run: | + pdm run test + - name: Run + run: | + pdm run app --help