Skip to content

Commit efa5b74

Browse files
committed
CI
1 parent 4d9a52f commit efa5b74

File tree

5 files changed

+79
-24
lines changed

5 files changed

+79
-24
lines changed

.github/pull_request_template.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/lighthouse.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Lighthouse
2+
on: [push, pull_request]
3+
jobs:
4+
CI:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v1
8+
9+
- name: Set up Python 3.7
10+
uses: actions/setup-python@v1
11+
with:
12+
python-version: 3.7
13+
14+
- name: Install dask-sphinx-theme
15+
run: |
16+
python -m pip install --upgrade pip
17+
python -m pip install -e .
18+
19+
- name: Make example docs
20+
run: |
21+
cd docs
22+
make html
23+
24+
- name: Run Lighthouse against example docs build
25+
uses: treosh/lighthouse-ci-action@v2
26+
with:
27+
configPath: "./lighthouserc.json"
28+
temporaryPublicStorage: true

.github/workflows/main.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/pre-commit.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Linting
2+
3+
on:
4+
push:
5+
branches: main
6+
pull_request:
7+
branches: main
8+
9+
jobs:
10+
checks:
11+
name: pre-commit hooks
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-python@v2
16+
- uses: pre-commit/[email protected]

.github/workflows/publish-pypi.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Push to PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v1
15+
16+
- name: Set up Python 3.7
17+
uses: actions/setup-python@v1
18+
with:
19+
python-version: 3.7
20+
21+
- name: Install dask-sphinx-theme
22+
run: |
23+
python -m pip install --upgrade pip
24+
python -m pip install -e .
25+
26+
- name: Build dask-sphinx-theme dist
27+
run: |
28+
python -m pip install wheel twine
29+
python setup.py sdist bdist_wheel
30+
31+
- name: Publish dask-sphinx-theme
32+
uses: pypa/gh-action-pypi-publish@master
33+
with:
34+
user: __token__
35+
password: ${{ secrets.pypi_token }}

0 commit comments

Comments
 (0)