Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
issue-64: fix checking typing
Browse files Browse the repository at this point in the history
lowitea committed Aug 12, 2022

Unverified

This user has not yet uploaded their public signing key.
1 parent b62e366 commit f0a6071
Showing 5 changed files with 94 additions and 94 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -2,20 +2,20 @@ name: build

on:
release:
types: [released]
types: [ released ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2

- name: Build and push Docker image
uses: docker/build-push-action@v1
with:
username: ${{ secrets.CI_DOCKER_HUB_USER }}
password: ${{ secrets.CI_DOCKER_HUB_TOKEN }}
repository: nextuptechnologies/kesha
tags: ${{ github.event.release.tag_name }}, latest
dockerfile: ./deploy/app/Dockerfile
- name: Build and push Docker image
uses: docker/build-push-action@v1
with:
username: ${{ secrets.CI_DOCKER_HUB_USER }}
password: ${{ secrets.CI_DOCKER_HUB_TOKEN }}
repository: nextuptechnologies/kesha
tags: ${{ github.event.release.tag_name }}, latest
dockerfile: ./deploy/app/Dockerfile
18 changes: 9 additions & 9 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -24,14 +24,14 @@ jobs:
language: [ 'python' ]

steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
30 changes: 15 additions & 15 deletions .github/workflows/gen-docs.yml
Original file line number Diff line number Diff line change
@@ -2,27 +2,27 @@ name: gen-docs

on:
release:
types: [released]
types: [ released ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2

- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: '0.4.4'
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: '0.4.4'

- name: Build docs
run: mdbook build docs
- name: Build docs
run: mdbook build docs

- name: Publication of documentation
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/book
publish_branch: gh-docs
force_orphan: true
- name: Publication of documentation
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/book
publish_branch: gh-docs
force_orphan: true
36 changes: 18 additions & 18 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
name: Type checking

on: [push, pull_request]
on: [ push, pull_request ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: 3.10

- name: Setup Poetry
uses: Gr1N/setup-poetry@v7
- name: Setup Poetry
uses: Gr1N/setup-poetry@v7

- name: Install dependencies
run: |
python -m pip install --upgrade pip
poetry install
- name: Analysing the code with mypy
env:
KESHA_SECRET_KEY: secret
run: |
poetry run mypy kesha --ignore-missing-imports
- name: Install dependencies
run: |
python -m pip install --upgrade pip
poetry install
- name: Analysing the code with mypy
env:
KESHA_SECRET_KEY: secret
run: |
poetry run mypy kesha --ignore-missing-imports
84 changes: 42 additions & 42 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: autotests

on: [push, pull_request]
on: [ push, pull_request ]

jobs:
autotests:
@@ -20,59 +20,59 @@ jobs:
--health-retries 5
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2

- name: Install poetry
run: |
pip install poetry==1.0.9
- name: Install poetry
run: |
pip install poetry==1.0.9
- name: Set up cache
uses: actions/cache@v1
with:
path: .venv
key: venv-${{ hashFiles('poetry.lock') }}
- name: Set up cache
uses: actions/cache@v1
with:
path: .venv
key: venv-${{ hashFiles('poetry.lock') }}

- name: Install dependencies
run: |
poetry config virtualenvs.in-project true
poetry install
- name: Install dependencies
run: |
poetry config virtualenvs.in-project true
poetry install
- name: Run autotests
env:
KESHA_DB_HOST: postgres
KESHA_SECRET_KEY: secret
run: |
poetry run pytest --cov=./ --cov-report=xml
- name: Run autotests
env:
KESHA_DB_HOST: postgres
KESHA_SECRET_KEY: secret
run: |
poetry run pytest --cov=./ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CI_CODECOV_TOKEN }}
file: ./coverage.xml
fail_ci_if_error: true
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CI_CODECOV_TOKEN }}
file: ./coverage.xml
fail_ci_if_error: true

lint-check:
runs-on: ubuntu-latest
container: python:3.10

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2

- name: Install poetry
run: |
pip install poetry==1.0.9
- name: Install poetry
run: |
pip install poetry==1.0.9
- name: Set up cache
uses: actions/cache@v1
with:
path: .venv
key: venv-${{ hashFiles('poetry.lock') }}
- name: Set up cache
uses: actions/cache@v1
with:
path: .venv
key: venv-${{ hashFiles('poetry.lock') }}

- name: Install dependencies
run: |
poetry config virtualenvs.in-project true
poetry install
- name: Install dependencies
run: |
poetry config virtualenvs.in-project true
poetry install
- name: Run lint
run: |
poetry run flake8 --count
- name: Run lint
run: |
poetry run flake8 --count

0 comments on commit f0a6071

Please sign in to comment.