Skip to content

style: Bumps ruff & black, removes isort & pydocstyle #216

style: Bumps ruff & black, removes isort & pydocstyle

style: Bumps ruff & black, removes isort & pydocstyle #216

Workflow file for this run

name: builds
on:
push:
branches: main
pull_request:
branches: main
jobs:
docker:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: "3.8"
- uses: abatilo/actions-poetry@v2
with:
poetry-version: "1.3.0"
- name: Resolve dependencies
run: poetry export -f requirements.txt --without-hashes --output src/app/requirements.txt
- name: Build & run docker
env:
BUCKET_NAME: ${{ secrets.BUCKET_NAME }}
BUCKET_MEDIA_FOLDER: ${{ secrets.BUCKET_MEDIA_FOLDER }}
S3_ENDPOINT_URL: ${{ secrets.S3_ENDPOINT_URL }}
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
S3_REGION: ${{ secrets.S3_REGION }}
run: docker-compose up -d --build
- name: Docker sanity check
run: sleep 20 && nc -vz localhost 8080
- name: Debug
run: docker-compose logs
- name: Ping server
run: curl http://localhost:8080/docs
client:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: [3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
architecture: x64
- name: Cache python modules
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-python-${{ matrix.python }}-${{ hashFiles('client/pyproject.toml') }}
- name: Install project
run: |
python -m pip install --upgrade pip
pip install -e client/.
- name: Import package
run: python -c "import pyroclient; print(pyroclient.__version__)"