This commit is contained in:
parent
93bcaf216c
commit
8a7a273499
32
.gitea/workflows/build.yaml
Normal file
32
.gitea/workflows/build.yaml
Normal file
|
@ -0,0 +1,32 @@
|
|||
---
|
||||
name: build
|
||||
on:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
jobs:
|
||||
build:
|
||||
container:
|
||||
image: focs.ji.sjtu.edu.cn:5000/gitea/runner-images:ubuntu-latest
|
||||
volumes:
|
||||
- /home/actions/.ssh:/root/.ssh
|
||||
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
|
Loading…
Reference in New Issue
Block a user