Skip to content

ci: add pr workflow

ci: add pr workflow #6

Workflow file for this run

name: PR
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction
- uses: extractions/setup-just@v1
with:
just-version: '1.16.0'
- name: Run tests
run: poetry run just test
lint:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@

Check failure on line 37 in .github/workflows/pr.yml

View workflow run for this annotation

GitHub Actions / PR

Invalid workflow file

The workflow is not valid. .github/workflows/pr.yml (Line: 37, Col: 13): Expected format {org}/{repo}[/path]@ref. Actual 'actions/checkout@' Input string was not in a correct format.
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction
- uses: extractions/setup-just@v1
with:
just-version: '1.16.0'
- name: Run tests
run: poetry run just lint