Add docker_image_ci.yml
This commit is contained in:
parent
1d9370d687
commit
18e8752047
19
.github/workflows/docker_image_ci.yml
vendored
Normal file
19
.github/workflows/docker_image_ci.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
name: Docker image CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'main'
|
||||||
|
- 'feature/*'
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- 'main'
|
||||||
|
- 'feature/*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Build the Docker image
|
||||||
|
run: docker build . -f ./setup_files/Dockerfile
|
||||||
28
.github/workflows/style_and_error_checker.yml
vendored
28
.github/workflows/style_and_error_checker.yml
vendored
@ -7,18 +7,18 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.9", "3.10", "3.11"]
|
python-version: ['3.9', '3.10', '3.11']
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install pycodestyle pyflakes
|
pip install pycodestyle pyflakes
|
||||||
- name: Analysing the code with pycodestyle
|
- name: Analysing the code with pycodestyle
|
||||||
run: |
|
run: |
|
||||||
pycodestyle --first --ignore='E501' $(git ls-files '*.py')
|
pycodestyle --first --ignore='E501' $(git ls-files '*.py')
|
||||||
pyflakes $(git ls-files '*.py')
|
pyflakes $(git ls-files '*.py')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user