Skip to content

Commit 9f04e08

Browse files
committed
Merge remote-tracking branch 'origin/main' into MGComponent
2 parents fceeb21 + b56f413 commit 9f04e08

File tree

236 files changed

+8352
-19467
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

236 files changed

+8352
-19467
lines changed

.github/workflows/pull-request.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: pytest
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Install poetry
16+
# install poetry before setup-python to enable cache retrieval
17+
run: pipx install poetry
18+
19+
- name: Set up Python 3.8
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: 3.8
23+
cache: poetry
24+
25+
- name: Install webdriver and poetry
26+
run: |
27+
sudo apt-get update && sudo apt-get install firefox-geckodriver
28+
pip install --upgrade pip
29+
poetry config virtualenvs.in-project false
30+
poetry config virtualenvs.path ~/.virtualenvs
31+
32+
- name: Install dependencies
33+
run: poetry install -E server -E fermi
34+
35+
- name: Test with pytest
36+
env:
37+
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
38+
run: |
39+
poetry run pytest --color=yes --webdriver Firefox --headless crystal_toolkit/apps/examples/tests/

.github/workflows/pullrequest.yml

-40
This file was deleted.

.github/workflows/pytest-docs.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: pytest_and_docs
2+
3+
on: [release, workflow_dispatch]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v3
11+
12+
- name: Install poetry
13+
# install poetry before setup-python to enable cache retrieval
14+
run: pipx install poetry
15+
16+
- name: Set up Python 3.8
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: 3.8
20+
cache: poetry
21+
22+
- name: Install webdriver and poetry
23+
run: |
24+
sudo apt-get update && sudo apt-get install firefox-geckodriver
25+
pip install --upgrade pip
26+
poetry config virtualenvs.in-project false
27+
poetry config virtualenvs.path ~/.virtualenvs
28+
29+
- name: Install dependencies
30+
run: poetry install -E server -E fermi
31+
32+
- name: Build new docs
33+
run: |
34+
git config --global user.name 'Matthew Horton'
35+
git config --global user.email '[email protected]'
36+
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
37+
git checkout "${GITHUB_REF:11}"
38+
cd docs_rst
39+
poetry run make html
40+
41+
- name: Commit new docs
42+
run: |
43+
git add -A
44+
git diff-index --quiet HEAD || git commit -m "Automated doc build"
45+
git push
46+
continue-on-error: true
47+
48+
- name: Test with pytest
49+
env:
50+
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
51+
run: |
52+
poetry run pytest --color=yes --webdriver Firefox --headless crystal_toolkit/apps/examples/tests/

.github/workflows/pytest_docs.yml

-53
This file was deleted.

.github/workflows/release.yml

+25-20
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,33 @@
11
name: release
22

3-
on:
4-
workflow_dispatch
3+
on: workflow_dispatch
54

65
jobs:
76
deploy:
8-
97
runs-on: ubuntu-latest
108

119
steps:
12-
- uses: actions/checkout@v2
13-
with:
14-
ref: main
15-
fetch-depth: 2
16-
- name: Set up Python 3.7
17-
uses: actions/setup-python@v1
18-
with:
19-
python-version: 3.7
20-
- name: Install dependencies
21-
run: |
22-
pip install --upgrade pip && pip install --no-cache-dir poetry
23-
poetry install -E server -E fermi
24-
- name: Build and publish
25-
run: |
26-
poetry build
27-
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
28-
poetry publish
10+
- uses: actions/checkout@v2
11+
with:
12+
fetch-depth: 2
13+
14+
- name: Install poetry
15+
# install poetry before setup-python to enable cache retrieval
16+
run: pipx install poetry
17+
18+
- name: Set up Python 3.8
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: 3.8
22+
cache: poetry
23+
24+
- name: Install dependencies
25+
run: |
26+
pip install --upgrade pip
27+
poetry install -E server -E fermi
28+
29+
- name: Build and publish
30+
run: |
31+
poetry build
32+
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
33+
poetry publish

.github/workflows/url-check.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Check URLs
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
lychee-link-check:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Check out repo
14+
uses: actions/checkout@v3
15+
16+
- name: Check for broken links
17+
uses: lycheeverse/lychee-action@v1
18+
with:
19+
# --exclude-loopback ensures we don't check localhost URLs
20+
args: --exclude-loopback './**/*.md' './**/*.rst'

0 commit comments

Comments
 (0)