From 6168903029648e089312e06cab90c535694ac73d Mon Sep 17 00:00:00 2001 From: Ari Archer Date: Sat, 2 Apr 2022 21:27:19 +0300 Subject: [PATCH] update @ Sat 2 Apr 21:27:19 EEST 2022 Signed-off-by: Ari Archer --- .github/workflows/build.yml | 30 ++++++++++++++++++++ .github/workflows/{spt.yml => typecheck.yml} | 0 scripts/blog | 2 +- 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yml rename .github/workflows/{spt.yml => typecheck.yml} (100%) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..f721b4e --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,30 @@ +name: Test if the site builds + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.8] + + steps: + - uses: actions/checkout@v2 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + + - name: Install requirements + run: | + pip install -r requirements.txt + + - name: Build static site + run: | + python3 scripts/blog static diff --git a/.github/workflows/spt.yml b/.github/workflows/typecheck.yml similarity index 100% rename from .github/workflows/spt.yml rename to .github/workflows/typecheck.yml diff --git a/scripts/blog b/scripts/blog index d001766..4649fc9 100755 --- a/scripts/blog +++ b/scripts/blog @@ -230,7 +230,7 @@ def new_blog(config: Dict) -> Tuple[int, Dict]: "title": b64encode(us_title.encode()).decode(), "content": "", "version": BLOG_VERSION, - "time": "Unknown", + "time": 0.0, "keywords": "", }