Skip to content

Commit

Permalink
wip: replace poetry setup using snok
Browse files Browse the repository at this point in the history
  • Loading branch information
skim0119 committed Mar 9, 2023
1 parent 1772679 commit 0e52375
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/ci-sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,20 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Setup Poetry
uses: Gr1N/setup-poetry@v7
- name: Set up Python
uses: actions/setup-python@v4.2.0
with:
poetry-preview: false
- name: Export requirements file for sphinx
python-version: "3.10"
# You can test your matrix by printing the current Python version
- name: Display Python version
run: python -c "import sys; print(sys.version)"
# Install Poetry and dependencies
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install dependencies
run: |
poetry export -E docs --without-hashes -f requirements.txt --output docs/requirements.txt
poetry config virtualenvs.in-project true
poetry install --all-extras
- name: Sphinx Build
# You may pin to the exact commit or the version.
Expand Down

0 comments on commit 0e52375

Please sign in to comment.