Skip to content

Commit

Permalink
fix: add pip install maturin to ci and cd
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyashankar committed Nov 10, 2024
1 parent 1d40ac5 commit 37522bb
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 35 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ jobs:
- name: Install Poetry
uses: snok/install-poetry@v1

- name: Install maturin
run: pip install maturin

- name: Copy environment file
run: cp .env.sample .env

Expand Down
72 changes: 37 additions & 35 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,37 @@
name: docs
on:
push:
branches:
- master
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Copy environment file
run: cp .env.sample .env
- name: Install dependencies
run: make install
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: poetry run mkdocs build
- run: poetry run mkdocs gh-deploy --force
name: docs
on:
push:
branches:
- master
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install maturin
run: pip install maturin
- name: Copy environment file
run: cp .env.sample .env
- name: Install dependencies
run: make install
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: poetry run mkdocs build
- run: poetry run mkdocs gh-deploy --force

0 comments on commit 37522bb

Please sign in to comment.