JOJ3-config-generator/.gitea/workflows/build.yaml
张泊明518370910136 a4ef239bce
Some checks failed
build / build (push) Failing after 33s
ci(build): set pdm install path
2024-10-19 06:03:20 -04:00

34 lines
1003 B
YAML

---
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 - -p /usr/bin/pdm
- name: Display PDM version
run: pdm --version
- name: PDM install dependencies
run: |
pdm install
echo "/root/.local/bin" >> $GITHUB_PATH
echo "Updated PATH: $PATH"
- name: Lint
run: |
pdm run lint
- name: Test
run: |
pdm run test
- name: Run
run: |
pdm run app --help