Skip to content

Commit

Permalink
ci: we already run tests on every push, so we don't need to run them …
Browse files Browse the repository at this point in the history
…on pull requests too
  • Loading branch information
roedoejet committed Sep 7, 2023
1 parent b25f0e7 commit f767b49
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 28 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy docs
on:
push:
branches:
- main
jobs:
docs:
# Create latest docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # fetch all commits/branches
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
- name: Install documentation dependencies
run: |
pip install -r docs/requirements.txt
- name: Setup doc deploy
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: Deploy docs with mike 🚀
run: |
mkdocs build
mike deploy --push --update-aliases latest
32 changes: 4 additions & 28 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Run all tests
on:
- push
- pull_request
pull_request:
types: [review_requested]
push:

jobs:
test-all-on-linux:
# This is our main test job, exercising everything and uploading to coverage
Expand Down Expand Up @@ -66,29 +68,3 @@ jobs:
# Warning: This is PowerShell syntax, not bash!
g2p convert est fra fra-ipa > out
if (diff (echo ɛ) (cat out)) { throw "Output did not match reference" }
docs:
# Create latest docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # fetch all commits/branches
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
- name: Install documentation dependencies
run: |
pip install -r docs/requirements.txt
- name: Setup doc deploy
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: Deploy docs with mike 🚀
run: |
mkdocs build
mike deploy --push --update-aliases latest

0 comments on commit f767b49

Please sign in to comment.