Skip to content

Commit

Permalink
ci: Use Rye with build and deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
attakei committed Mar 24, 2024
1 parent d6ef649 commit 6af6ae9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,12 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
architecture: x64
python-version: '3.11'
- name: Install dependencies
- uses: actions/checkout@v4
- uses: eifinger/setup-rye@v2
- name: 'Build website'
run: |
pip install pipenv
pipenv install
- name: Run build
run: pipenv run make dirhtml
rye sync --no-lock
rye run make dirhtml
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ dev-dependencies = [
"sphinx-autobuild>=2021.3.14",
]

[tool.rye.scripts]
make = "make"

[tool.ruff.lint]
select = ["C90", "D", "E", "F", "I", "W"]

Expand Down

0 comments on commit 6af6ae9

Please sign in to comment.