Skip to content

Commit

Permalink
Act Test (#374)
Browse files Browse the repository at this point in the history
* Act Experimentation

* get rid of Python v3.1 issue by specifying full version

* One more time

* Trying with Python 3

* Run job in sub directory.

* Remove test-docs and always run build-docs
  • Loading branch information
eak24 authored Dec 12, 2024
1 parent 8032dde commit 3946337
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 52 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,27 @@ name: Documentation

on:
push:
branches:
- '**'
tags:
- "v*.*.*"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Setup System Dependencies
run: |
apt-get update
apt-get install -y tzdata rsync
ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime
dpkg-reconfigure -f noninteractive tzdata
- name: Install Dependencies
sudo apt-get update
sudo apt-get install -y tzdata rsync
sudo ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime
sudo dpkg-reconfigure -f noninteractive tzdata
- name: Install Python Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
Expand All @@ -31,7 +33,7 @@ jobs:
touch _build/html/.nojekyll
- name: Archive Artifacts
if: startsWith(github.ref, 'refs/tags/v')
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: docs
path: Textbook/_build/html/
Expand Down
43 changes: 0 additions & 43 deletions .github/workflows/test-build.yml

This file was deleted.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ Pushing a tag will kick off the automated release workflow which builds the PDF

# Running locally
We use [act](https://github.com/nektos/act) to run the workflow locally. After installing act, run `act --container-architecture linux/amd64` in the root directory to see a list of workflows that can be run locally.

3 changes: 2 additions & 1 deletion Textbook/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ _build/
.idea/

.DS_store
.history
.history
act.exe

0 comments on commit 3946337

Please sign in to comment.