Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxHalford committed Nov 2, 2023
1 parent e9f8daf commit 28deb65
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 111 deletions.
71 changes: 0 additions & 71 deletions .github/workflows/build-river.yml

This file was deleted.

28 changes: 7 additions & 21 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: code-quality

on:
pull_request:
branches:
- "*"
push:
branches:
- main
Expand All @@ -9,29 +12,12 @@ jobs:
ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
- name: Build River
uses: ./.github/actions/install-env
with:
python-version: 3.11

- run: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=nightly --profile=minimal -y && rustup show
if: matrix.os == 'ubuntu-latest'

- name: Cache Python dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install wheel
pip install -e ".[dev]"
python-version: "3.12"

- name: Run pre-commit on all files
run: pre-commit run --all-files
19 changes: 12 additions & 7 deletions .github/workflows/docs.yml → .github/workflows/dev-docs.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,35 @@
name: docs

on:
workflow_call:
push:
branches:
- main

jobs:
docs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Retrieve the environment and the River build
uses: ./.github/actions/retrieve-env
- name: Build River
uses: ./.github/actions/install-env
with:
python: "3.11"
python-version: "3.12"

- name: Install Ubuntu dependencies
- name: Install extra Ubuntu dependencies
run: sudo apt-get install graphviz pandoc

- name: Install extra Python dependencies
run: |
poetry install --with docs
- name: Build docs
run: |
source ~/.venv/bin/activate
make doc
- name: Deploy docs
if: github.event_name == 'push'
env:
GH_TOKEN: ${{ secrets.GitHubToken }}
run: |
Expand Down
20 changes: 8 additions & 12 deletions .github/workflows/release-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,20 @@ jobs:
ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install Ubuntu dependencies
run: sudo apt-get install graphviz pandoc

- name: Set up Python
uses: actions/setup-python@v4
- name: Build River
uses: ./.github/actions/install-env
with:
python-version: "3.9"
python-version: "3.12"

- run: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=nightly --profile=minimal -y && rustup show
if: matrix.os == 'ubuntu-latest'
- name: Install extra Ubuntu dependencies
run: sudo apt-get install graphviz pandoc

- name: Install Python dependencies
- name: Install extra Python dependencies
run: |
python -m pip install --upgrade pip
pip install wheel
pip install -e ".[compat,dev,docs]"
poetry install --with compat --with docs
pip install rich
python -m spacy download en_core_web_sm
Expand Down

0 comments on commit 28deb65

Please sign in to comment.