Refactoring to facilitate interactive use of ReX #19
Workflow file for this run
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
# This workflow will install ReX and carry out linting and type checking | |
name: Linting and type checking | |
on: pull_request | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.12"] | |
permissions: | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install poetry | |
run: pipx install poetry | |
- name: Set up Python, install and cache dependencies | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{matrix.python-version}} | |
cache: poetry | |
- run: poetry install --with dev | |
- run: echo "$(poetry env info --path)/bin" >> $GITHUB_PATH | |
- name: Lint with Ruff | |
run: | | |
ruff check --output-format=github . | |
- name: Type checking with Pyright | |
uses: YajJackson/simple-pyright-action@v1.0.0 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
include-base-comparison: true | |
fail-on-issue-increase: true | |
include-file-comments: false | |