File tree 3 files changed +8
-18
lines changed
3 files changed +8
-18
lines changed Original file line number Diff line number Diff line change 1
- # Sample workflow for building and deploying a Jekyll site to GitHub Pages
2
1
name : Deploy Jekyll with GitHub Pages dependencies preinstalled
3
2
4
3
on :
5
- # Runs on pushes targeting the default branch
6
4
push :
7
5
branches : ["master"]
6
+ workflow_dispatch : # enable manual workflow execution
8
7
9
- # Allows you to run this workflow manually from the Actions tab
10
- workflow_dispatch :
11
-
12
- # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
8
+ # Set permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13
9
permissions :
14
10
contents : read
15
11
pages : write
@@ -22,25 +18,26 @@ concurrency:
22
18
cancel-in-progress : false
23
19
24
20
jobs :
25
- # Build job
26
21
build :
27
22
# prevent this action from running on forks
28
23
if : github.repository == 'materialsproject/pymatgen'
29
24
runs-on : ubuntu-latest
30
25
steps :
31
26
- name : Checkout
32
27
uses : actions/checkout@v4
28
+
33
29
- name : Setup Pages
34
30
uses : actions/configure-pages@v3
31
+
35
32
- name : Build with Jekyll
36
33
uses : actions/jekyll-build-pages@v1
37
34
with :
38
35
source : ./docs
39
36
destination : ./_site
37
+
40
38
- name : Upload artifact
41
39
uses : actions/upload-pages-artifact@v2
42
40
43
- # Deployment job
44
41
deploy :
45
42
environment :
46
43
name : github-pages
Original file line number Diff line number Diff line change 50
50
51
51
- name : Set up Python ${{ matrix.python-version }}
52
52
uses : actions/setup-python@v5
53
- with :
54
- python-version : ${{ matrix.python-version }}
55
- cache : pip
56
- cache-dependency-path : setup.py
57
-
58
- - name : Install uv
59
- run : pip install uv
60
53
61
54
- name : Copy GULP to bin
62
55
if : matrix.os == 'ubuntu-latest'
@@ -103,13 +96,13 @@ jobs:
103
96
# TODO remove temporary fix. added since uv install torch is flaky.
104
97
# track https://github.com/astral-sh/uv/issues/1921 for resolution
105
98
pip install torch
106
-
99
+ pip install uv
107
100
uv pip install numpy cython --system
108
101
109
102
uv pip install -e '.[dev,optional]' --system
110
103
111
104
# TODO remove next line installing ase from main branch when FrechetCellFilter is released
112
- uv pip install --upgrade 'ase@ git+https://gitlab.com/ase/ase' --system
105
+ uv pip install --upgrade 'git+https://gitlab.com/ase/ase' --system
113
106
114
107
- name : pytest split ${{ matrix.split }}
115
108
run : |
Original file line number Diff line number Diff line change 8
8
9
9
repos :
10
10
- repo : https://github.com/astral-sh/ruff-pre-commit
11
- rev : v0.3.3
11
+ rev : v0.3.4
12
12
hooks :
13
13
- id : ruff
14
14
args : [--fix, --unsafe-fixes]
You can’t perform that action at this time.
0 commit comments