Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Adds ruff

Adds ruff #48

Workflow file for this run

name: merge-to-master
on:
pull_request:
branches:
- master
jobs:
cicd:
name: CICD
runs-on: ubuntu-latest
env:
ENVIRONMENT: prod
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Poetry cache
uses: actions/cache@v3
with:
path: |
~/.cache/pip
~/.cache/pypoetry
key: ${{ runner.os }}-pypoetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-pypoetry-${{ hashFiles('**/poetry.lock') }}
${{ runner.os }}-pypoetry-
- name: Create env file
run: |
touch .env
echo ENVIRONMENT=ci >> .env
cat .env
- name: Run CI
run: make run-ci
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Docker build
run: make dc-build
env:
IMAGE_TAG: merge
- name: Docker push
run: make dc-push
env:
IMAGE_TAG: merge