Skip to content

Commit

Permalink
CI: real life testing
Browse files Browse the repository at this point in the history
  • Loading branch information
paugier committed Dec 17, 2024
1 parent 97340a5 commit 84dd40a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:
- name: Install Mercurial with UV
run: |
uv tool install mercurial --with hg-git --with hg-evolve
- name: Check Mercurial installation
run: |
uvx hg version -v
uvx hg debuginstall
- name: Setup PDM
uses: pdm-project/setup-pdm@v4
with:
Expand All @@ -27,3 +31,12 @@ jobs:
run: pdm sync --clean
- name: Run tests
run: pdm run pytest --cov=hg_setup tests
- name: Check real life usage
run: |
pdm run hg-setup -h
pdm run hg-setup init --auto
uvx hg version -v
uvx hg debuginstall
cd $HOME
uvx hg clone https://github.com/fluiddyn/hg-setup.git
cd hg-setup
13 changes: 12 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,24 @@ before_script:
- python -m pip install pdm



test:linux:
stage: test
script:
- pdm sync --clean
- pdm run pytest --cov=hg_setup tests

test:real-life:
stage: test
script:
- python -m pip install uv
- uv tool install mercurial --with hg-git --with hg-evolve
- uv tool install .
- export PATH=/root/.local/bin:$PATH
- hg-setup init --auto
- cd $HOME
- hg clone https://github.com/fluiddyn/hg-setup.git
- cd hg-setup


build:package:
stage: build
Expand Down

0 comments on commit 84dd40a

Please sign in to comment.