Skip to content

chore(master): release dotty-dictionary 1.1.1 #4

chore(master): release dotty-dictionary 1.1.1

chore(master): release dotty-dictionary 1.1.1 #4

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
- run: poetry run poe test tests
env:
GITHUB_PAT: ${{ secrets.GH_PAT }}
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