JOJ3-config-generator/.gitea/workflows/build.yaml
张泊明518370910136 9290167a7e
All checks were successful
build / build (push) Successful in 1m58s
ci: skip coverage upload
2025-05-27 15:24:24 +08:00

32 lines
862 B
YAML

name: build
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@focs
- name: Display Python3 version
run: python3 --version
- name: Install PDM
run: |
echo curl
curl -sSL https://ghfast.top/https://raw.githubusercontent.com/pdm-project/pdm/main/install-pdm.py -o install-pdm.py
echo sed
sed -i 's|https://github.com|https://ghfast.top/https://github.com|g' install-pdm.py
echo python3
python3 install-pdm.py -p /usr
- name: Display PDM version
run: pdm --version
- name: PDM install dependencies
run: |
pdm install
- name: Lint
run: |
pdm run lint
- name: Run
run: |
pdm run app --help