Skip to content

Commit

Permalink
[MISC] Move github workflows from Nox to Poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
Aedial committed May 18, 2023
1 parent e08fda7 commit 4ea2b9e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@ name: Python package
on:
push:
branches: [ main ]
paths:
- "novelai-api/**"
pull_request:
branches: [ main ]
paths:
- "novelai-api/**"

jobs:
mock:
Expand All @@ -30,7 +34,7 @@ jobs:
pip install nox
- name: Test
run: |
nox -s test-mock --no-error-on-missing-interpreters
poetry run nai-test-mock
test:
environment: NovelAI
Expand All @@ -49,10 +53,10 @@ jobs:
cache: 'pip'
- name: Install dependencies
run: |
pip install nox
pip install poetry
- name: Test
run: |
nox -s test-api-3.11
poetry run nai-test-api
env:
NAI_USERNAME: ${{ secrets.NAI_USERNAME }}
NAI_PASSWORD: ${{ secrets.NAI_PASSWORD }}
4 changes: 2 additions & 2 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
with:
python-version: "3.10"

- run: pip install nox
- run: pip install poetry
- name: Build HTML
run: nox -s build-docs -- novelai_api
run: poetry run nai-build-docs

- name: Deploy on Github Pages
uses: peaceiris/actions-gh-pages@v3
Expand Down

0 comments on commit 4ea2b9e

Please sign in to comment.