Skip to content

Commit

Permalink
Merge pull request #6 from kianby/feature-technical-debt
Browse files Browse the repository at this point in the history
Feature technical debt
  • Loading branch information
kianby committed Nov 12, 2022
2 parents a8750d5 + 3e572e5 commit 4f9f913
Show file tree
Hide file tree
Showing 7 changed files with 135 additions and 169 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/docker.yml
Expand Up @@ -6,7 +6,10 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
- name: Build the Docker image
run: |
echo "${{ secrets.DOCKER_HUB_TOKEN }}" | docker login -u "${{ secrets.DOCKER_HUB_USERNAME }}" --password-stdin docker.io
Expand Down
41 changes: 22 additions & 19 deletions .github/workflows/lint.yml
Expand Up @@ -5,22 +5,25 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.9.9"
- name: Install poetry
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: 1.1.12
- name: Install dependencies
run: poetry install
- name: Run flake8
uses: julianwachholz/flake8-action@v2
with:
checkName: "Python Lint"
path: .
plugins: flake8-spellcheck
config: flake8.ini
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v3
with:
node-version: '16'
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
with:
python-version: "3.10.8"
- name: Install poetry
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: 1.2.2
- name: Install dependencies
run: poetry install
- name: Run flake8
uses: julianwachholz/flake8-action@v2
with:
checkName: "Python Lint"
path: .
plugins: flake8-spellcheck
config: flake8.ini
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45 changes: 24 additions & 21 deletions .github/workflows/pytest.yml
Expand Up @@ -6,26 +6,29 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.8.10, 3.9.9]
poetry-version: [1.1.12]
os: [ubuntu-18.04, macos-latest, windows-latest]
python-version: [3.10.8]
poetry-version: [1.2.2]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install dependencies
run: poetry install
- name: Pytest and Coverage
run: |
poetry run coverage run -m --source=stacosys pytest tests
poetry run coverage report
- name: Send report to Coveralls
run: poetry run coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
- uses: actions/setup-node@v3
with:
node-version: '16'
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install dependencies
run: poetry install
- name: Pytest and Coverage
run: |
poetry run coverage run -m --source=stacosys pytest tests
poetry run coverage report
- name: Send report to Coveralls
run: poetry run coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}

0 comments on commit 4f9f913

Please sign in to comment.