CI
This commit is contained in:
parent
0741bd182e
commit
6f401ed3b7
3 changed files with 50 additions and 41 deletions
5
.github/workflows/docker.yml
vendored
5
.github/workflows/docker.yml
vendored
|
@ -6,7 +6,10 @@ jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: '16'
|
||||||
- name: Build the Docker image
|
- name: Build the Docker image
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.DOCKER_HUB_TOKEN }}" | docker login -u "${{ secrets.DOCKER_HUB_USERNAME }}" --password-stdin docker.io
|
echo "${{ secrets.DOCKER_HUB_TOKEN }}" | docker login -u "${{ secrets.DOCKER_HUB_USERNAME }}" --password-stdin docker.io
|
||||||
|
|
41
.github/workflows/lint.yml
vendored
41
.github/workflows/lint.yml
vendored
|
@ -5,22 +5,25 @@ jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/setup-node@v3
|
||||||
- uses: actions/setup-python@v2
|
with:
|
||||||
with:
|
node-version: '16'
|
||||||
python-version: "3.9.9"
|
- uses: actions/checkout@v3
|
||||||
- name: Install poetry
|
- uses: actions/setup-python@v2
|
||||||
uses: abatilo/actions-poetry@v2.0.0
|
with:
|
||||||
with:
|
python-version: "3.10.8"
|
||||||
poetry-version: 1.1.12
|
- name: Install poetry
|
||||||
- name: Install dependencies
|
uses: abatilo/actions-poetry@v2.0.0
|
||||||
run: poetry install
|
with:
|
||||||
- name: Run flake8
|
poetry-version: 1.2.2
|
||||||
uses: julianwachholz/flake8-action@v2
|
- name: Install dependencies
|
||||||
with:
|
run: poetry install
|
||||||
checkName: "Python Lint"
|
- name: Run flake8
|
||||||
path: .
|
uses: julianwachholz/flake8-action@v2
|
||||||
plugins: flake8-spellcheck
|
with:
|
||||||
config: flake8.ini
|
checkName: "Python Lint"
|
||||||
env:
|
path: .
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
plugins: flake8-spellcheck
|
||||||
|
config: flake8.ini
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
45
.github/workflows/pytest.yml
vendored
45
.github/workflows/pytest.yml
vendored
|
@ -6,26 +6,29 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [3.8.10, 3.9.9]
|
python-version: [3.10.8]
|
||||||
poetry-version: [1.1.12]
|
poetry-version: [1.2.2]
|
||||||
os: [ubuntu-18.04, macos-latest, windows-latest]
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/setup-node@v3
|
||||||
- uses: actions/setup-python@v2
|
with:
|
||||||
with:
|
node-version: '16'
|
||||||
python-version: ${{ matrix.python-version }}
|
- uses: actions/checkout@v3
|
||||||
- name: Run image
|
- uses: actions/setup-python@v2
|
||||||
uses: abatilo/actions-poetry@v2.0.0
|
with:
|
||||||
with:
|
python-version: ${{ matrix.python-version }}
|
||||||
poetry-version: ${{ matrix.poetry-version }}
|
- name: Run image
|
||||||
- name: Install dependencies
|
uses: abatilo/actions-poetry@v2.0.0
|
||||||
run: poetry install
|
with:
|
||||||
- name: Pytest and Coverage
|
poetry-version: ${{ matrix.poetry-version }}
|
||||||
run: |
|
- name: Install dependencies
|
||||||
poetry run coverage run -m --source=stacosys pytest tests
|
run: poetry install
|
||||||
poetry run coverage report
|
- name: Pytest and Coverage
|
||||||
- name: Send report to Coveralls
|
run: |
|
||||||
run: poetry run coveralls
|
poetry run coverage run -m --source=stacosys pytest tests
|
||||||
env:
|
poetry run coverage report
|
||||||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
- name: Send report to Coveralls
|
||||||
|
run: poetry run coveralls
|
||||||
|
env:
|
||||||
|
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue