ci: install Rye with eifinger/setup-rye
#311
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pipeline | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Rye | |
uses: eifinger/setup-rye@v4 | |
- run: | | |
rye fmt --all --check | |
rye lint --all | |
rye run check-types | |
# test: | |
# name: Tests | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - name: Install Rye | |
# run: | | |
# curl -sSf https://rye.astral.sh/get | bash | |
# - run: | | |
# rye run run-tests | |
# type_check: | |
# name: Type Check | |
# needs: [build] | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - name: Set up Python 3.10 | |
# uses: actions/setup-python@v2 | |
# with: | |
# python-version: "3.10" | |
# - name: Download artifacts | |
# uses: actions/download-artifact@v2 | |
# with: | |
# name: artifacts | |
# path: artifacts | |
# - name: Install packages | |
# run: | | |
# pip install -r artifacts/dev-requirements.txt | |
# pip install --ignore-installed artifacts/*.whl | |
# - name: Run MypPy | |
# run: | | |
# mypy momba | |
# documentation: | |
# name: Documentation | |
# needs: [build] | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - name: Set up Python 3.10 | |
# uses: actions/setup-python@v2 | |
# with: | |
# python-version: "3.10" | |
# - name: Download artifacts | |
# uses: actions/download-artifact@v2 | |
# with: | |
# name: artifacts | |
# path: artifacts | |
# - name: Install packages | |
# run: | | |
# pip install -r artifacts/dev-requirements.txt | |
# pip install --ignore-installed artifacts/*.whl | |
# - name: Build documentation | |
# run: | | |
# sphinx-build -b dirhtml docs build/docs | |
# - name: Create CNAME file | |
# run: | | |
# echo "momba.dev" > build/docs/CNAME | |
# - name: Deploy documentation | |
# if: github.ref == 'refs/heads/main' | |
# uses: peaceiris/actions-gh-pages@v3 | |
# with: | |
# github_token: ${{ secrets.GITHUB_TOKEN }} | |
# publish_dir: ./build/docs |