JOJ3-config-generator/.gitea/workflows/build.yaml
李衍志523370910113 347c4b91d5
All checks were successful
build / build (push) Successful in 2m29s
build / build (pull_request) Successful in 2m27s
refactor/main (#11)
# what I have done

- sync main function in master branch and tested current code usage
- remove redundant code
- update README documents
- fix the immutable files logic

## TODO

- give fallback options for immutable files

Co-authored-by: Boming Zhang <bomingzh@sjtu.edu.cn>
Reviewed-on: #11
Co-authored-by: jon-lee <jon-lee@sjtu.edu.cn>
Co-committed-by: jon-lee <jon-lee@sjtu.edu.cn>
2025-02-27 15:51:31 +08:00

35 lines
919 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: Test
run: |
pdm run test
- name: Run
run: |
pdm run app --help