Skip to content

Commit 01c9b8a

Browse files
committed
Add simple GH that tries to make schemas on PR pushes
1 parent 4b05b2d commit 01c9b8a

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CI tests
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
env:
10+
PYTEST_ADDOPTS: "--color=yes"
11+
LINTING_PY_VERSION: "3.10" # The version of Python to use for linting (typically the minimum supported)
12+
13+
# Cancel running workflows when additional changes are pushed
14+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-a-fallback-value
15+
concurrency:
16+
group: ${{ github.head_ref || github.run_id }}
17+
cancel-in-progress: true
18+
19+
jobs:
20+
21+
make-schemas:
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- uses: actions/checkout@v5
26+
with:
27+
submodules: true
28+
29+
- name: Set up Python ${{ env.LINTING_PY_VERSION }}
30+
uses: actions/setup-python@v6
31+
with:
32+
python-version: ${{ env.LINTING_PY_VERSION }}
33+
34+
- name: Install dependencies
35+
run: |
36+
python -m pip install --upgrade pip
37+
pip install -U setuptools wheel
38+
pip install -r dependencies/submodules/optimade-property-tools/requirements.txt
39+
40+
- name: Make schemas
41+
run: make schemas_html_pretty=true schemas_html_ext=true

0 commit comments

Comments
 (0)