11name : docs
2+ permissions :
3+ contents : write
4+ pull-requests : write
25
36on :
47 push :
1417 - ' **.ipynb'
1518 - ' **.html'
1619 - ' **.js'
17- - poetry .lock
20+ - uv .lock
1821 - pyproject.toml
1922 - ' **.rst'
2023 - ' **.md'
@@ -23,33 +26,37 @@ jobs:
2326 deploy :
2427 runs-on : ubuntu-latest
2528 steps :
26- - uses : actions/checkout@v4.2.2
29+ - name : Checkout code
30+ uses : actions/checkout@v4.2.2
2731 with :
2832 submodules : ' true'
29- - name : Install dependencies, build docs and coverage report
30- run : python3 -m pip install --upgrade pip && python3 -m pip install poetry
31- - uses : actions/setup-python@v5.6.0
33+
34+ - name : Install uv
35+ uses : astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb
36+ with :
37+ enable-cache : true
38+
39+ - name : Set up Python
40+ uses : actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55
3241 with :
33- python-version : ' 3.10'
34- cache : ' poetry'
35- - run : |
36- python3 -m pip install --upgrade pip && python3 -m pip install poetry
37- poetry env use '3.10'
38- source $(poetry env info --path)/bin/activate
39- poetry install --with docs,test
40- cd docs && rm -rf source/reference/api/_autosummary && make html
41- # cd .. && coverage run -m pytest -m "not integration_test" && coverage xml && coverage report -m
42+ python-version-file : " .python-version"
43+
44+ - name : Install the project
45+ run : uv sync --all-extras --dev
46+
47+ - name : Build docs
48+ run : |
49+ cd docs && rm -rf source/reference/api/_autosummary && uv run make html
50+ # cd .. && uv run coverage run -m pytest -m "not integration_test" && uv run coverage xml && uv run coverage report -m
51+
4252 # - name: Upload coverage to Codecov
43- # uses: Wandalen/wretry. action@v1.4.4
53+ # uses: codecov/codecov- action@18283e04ce6e62d37312384ff67231eb8fd56d24
4454 # with:
45- # action: codecov/codecov-action@v4.0.1
46- # with: |
47- # token: ${{ secrets.CODECOV_TOKEN }}
48- # file: ./coverage.xml
49- # name: codecov-umbrella
50- # fail_ci_if_error: true
51- # attempt_limit: 5
52- # attempt_delay: 30000
55+ # token: ${{ secrets.CODECOV_TOKEN }}
56+ # slug: VectorInstitute/AtomGen
57+ # fail_ci_if_error: true
58+ # verbose: true
59+
5360 - name : Deploy to Github pages
5461 uses : JamesIves/github-pages-deploy-action@v4.7.3
5562 with :
0 commit comments