Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Use make venv to install dependencies #335

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Install additional python packages
run: pip3 install -r requirements.txt
- name: Create virtual environment
run: make venv

- name: Quick build docs
run: |
mkdir -p dist/en
mkdir -p build/en/doctrees
sphinx-build -j auto -b html -D language=en -d build/en/doctrees source dist/en
venv/bin/sphinx-build -j auto -b html -D language=en -d build/en/doctrees source dist/en
rm -rf dist/en/_sources

- name: Upload quick build artifact
Expand Down Expand Up @@ -62,13 +62,13 @@ jobs:
path: data.git

- name: Build pot files
run: sphinx-build -b gettext source data.git/locales/
run: venv/bin/sphinx-build -b gettext source data.git/locales/

- name: Build po files from pot files
shell: bash
run: |
lang=($OTHER_LANGS)
sphinx-intl update -p data.git/locales/ ${lang[@]/*/'-l '&' '}
venv/bin/sphinx-intl update -p data.git/locales/ ${lang[@]/*/'-l '&' '}
rm -rf data.git/locales/.doctrees

# this one looks like a upstream bug for the auto-translation
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@ jobs:
syntax-check:
name: Check syntax
runs-on: ubuntu-latest
container: python:3.11-slim
container: python:3.11
continue-on-error: true
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Create virtual environment
run: |
python -m venv venv
venv/bin/pip3 install -r requirements.txt
run: make venv
- name: Syntax check
run: |
. venv/bin/activate
Expand All @@ -23,14 +21,12 @@ jobs:
build-error-check:
name: Check build error
runs-on: ubuntu-latest
container: python:3.11-slim
container: python:3.11
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Create virtual environment
run: |
python -m venv venv
venv/bin/pip3 install -r requirements.txt
run: make venv
- name: Build documentation
run: |
. venv/bin/activate
Expand Down