Skip to content

Commit

Permalink
Update GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
entorb committed Apr 3, 2024
1 parent 6e53754 commit c2c6a5b
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 21 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/check-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,16 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Python set up
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.10"
# cache: "pip"

- name: Python cache set up
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-py-cache
Expand All @@ -37,4 +38,4 @@ jobs:
run: python3 -O scripts/check_chapters.py

- name: Check pre-commit tests
uses: pre-commit/[email protected].0
uses: pre-commit/[email protected].1
7 changes: 4 additions & 3 deletions .github/workflows/make-ebook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@ jobs:
run: date +%Y-%m-%d_%H:%M

- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1 # 0 if you want to push to repo

- name: Python set up
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.10"
# cache: "pip"

# - name: setup environment to DE lang
# run: |
Expand Down Expand Up @@ -57,7 +58,7 @@ jobs:
python3 --version
# - name: Check pre-commit tests
# uses: pre-commit/[email protected].0
# uses: pre-commit/[email protected].1

- name: Make eBooks
run: |
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/make-pdf-1-select.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@ jobs:
run: date +%Y-%m-%d_%H:%M

- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1 # 0 if you want to push to repo

- name: Python set up
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.10"
# cache: "pip"

- name: Test ls before
run: |
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/make-pdf-6-parallel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install requirements
run: sh scripts/install_requirements_pdf.sh > /dev/null
Expand All @@ -28,7 +28,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install requirements
run: sh scripts/install_requirements_pdf.sh > /dev/null
Expand All @@ -47,7 +47,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install requirements
run: sh scripts/install_requirements_pdf.sh > /dev/null
Expand All @@ -66,7 +66,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install requirements
run: sh scripts/install_requirements_pdf.sh > /dev/null
Expand All @@ -85,7 +85,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install requirements
run: sh scripts/install_requirements_pdf.sh > /dev/null
Expand All @@ -104,7 +104,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install requirements
run: sh scripts/install_requirements_pdf.sh > /dev/null
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/make-pdf-all-serial.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

Expand All @@ -26,9 +26,8 @@ jobs:
# pandoc -v
python3 --version
- name: Make PDF
run: latexmk > /dev/null
# run: latexmk hpmor hpmor-1 hpmor-2 hpmor-3 hpmor-4 hpmor-5 hpmor-6 > /dev/null
- name: Make PDFs
run: latexmk hpmor-1 hpmor-2 hpmor-3 hpmor-4 hpmor-5 hpmor-6 hpmor > /dev/null

- name: Publish PDF to release
uses: softprops/action-gh-release@v1
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/make-pdf-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@ jobs:
run: date +%Y-%m-%d_%H:%M

- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 1 # 0 if you want to push to repo

- name: Python set up
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.10"
# cache: "pip"

- name: Test ls before
run: |
Expand Down

0 comments on commit c2c6a5b

Please sign in to comment.