Skip to content

chore(master): release jtd-codebuild 0.8.0 #23

chore(master): release jtd-codebuild 0.8.0

chore(master): release jtd-codebuild 0.8.0 #23

Workflow file for this run

name: Test and Lint
on:
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v2
with:
python-version: 3.11
- uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- id: cache-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- id: install-dependencies
if: ${{ steps.cache-dependencies.outputs.cache-hit != 'true' }}
run: poetry install --all-extras
- id: install-jtd-codegen
run: source ./ci/install-jtd-codegen
- run: poetry run poe test jtd_codebuild/tests
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v2
with:
python-version: 3.11
- uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- id: cache-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- if: ${{ steps.cache-dependencies.outputs.cache-hit != 'true' }}
run: poetry install --all-extras
- run: poetry run poe lint
check-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v2
with:
python-version: 3.11
- uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- id: cache-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- if: ${{ steps.cache-dependencies.outputs.cache-hit != 'true' }}
run: poetry install --all-extras
- run: poetry run poe check-format