Skip to content

Commit

Permalink
CI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
krypticmouse committed May 16, 2024
1 parent ee090b4 commit e4eb879
Showing 1 changed file with 27 additions and 10 deletions.
37 changes: 27 additions & 10 deletions .github/workflows/qol.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,37 @@ name: Lint, Type Check, and Test
on: [push, pull_request]

jobs:
dependencies:
qol:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
python-version: '3.11'
- run: pip install poetry && poetry install && source $HOME/.poetry/env
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
version: 1.1.13
virtualenvs-create: true
virtualenvs-in-project: true
- name: Set up cache
uses: actions/cache@v2
id: cached-poetry-dependencies
with:
python-version: '3.11'
path: .venv
key: venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: poetry install
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
- name: Lint
run: |
pip install ruff
ruff check .
- name: Type check
run: |
pip install pyright
pyright
- name: Test
run: |
pip install pytest
pytest
- run: pip install ruff
- run: ruff check .

Expand All @@ -40,3 +56,4 @@ jobs:
python-version: '3.11'
- run: pip install pytest
- run: pytest

0 comments on commit e4eb879

Please sign in to comment.