-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(.github/actions): upgrade ubuntu (#891)
* fix(.github/actions): upgrade ubuntu and add cache for all actions
- Loading branch information
Showing
10 changed files
with
63 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: ESLint | ||
|
||
on: | ||
push: | ||
branches: [ master, develop, pre_*, ft_* ] | ||
pull_request: | ||
branches: [ master, develop, pre_*, ft_* ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
cache: 'npm' | ||
cache-dependency-path: 'src/pages/yarn.lock' | ||
- name: Install modules | ||
run: | | ||
cd src/pages | ||
npm i | ||
- name: Run ESLint | ||
run: | | ||
cd src/pages | ||
npx eslint --ext .js,.vue src/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,9 @@ name: Python CI Check | |
|
||
on: | ||
push: | ||
branches: [ master, develop, pre_* ] | ||
branches: [ master, develop, pre_*, ft_* ] | ||
pull_request: | ||
branches: [ master, develop, pre_* ] | ||
branches: [ master, develop, pre_*, ft_* ] | ||
|
||
jobs: | ||
build: | ||
|
@@ -14,21 +14,23 @@ jobs: | |
matrix: | ||
python-version: [3.6.14] | ||
poetry-version: [1.1.7] | ||
os: [ubuntu-18.04] | ||
os: [ubuntu-20.04] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Install poetry | ||
run: pipx install poetry==${{ matrix.poetry-version }} | ||
- name: Export requirements.txt | ||
run: poetry export -f requirements.txt --dev --without-hashes -o requirements.txt --no-ansi | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Set up Poetry | ||
uses: abatilo/[email protected] | ||
with: | ||
poetry-version: ${{ matrix.poetry-version }} | ||
cache: 'pip' | ||
cache-dependency-path: 'requirements.txt' | ||
- name: Install dependencies | ||
run: poetry config virtualenvs.create false && poetry install | ||
run: pip install -r requirements.txt -i https://pypi.org/simple/ | ||
- name: Lint with flake8 | ||
run: pflake8 src/ --config=pyproject.toml | ||
- name: Lint with mypy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,9 @@ name: Unittest | |
|
||
on: | ||
push: | ||
branches: [ master, develop, pre_* ] | ||
branches: [ master, develop, pre_*, ft_* ] | ||
pull_request: | ||
branches: [ master, develop, pre_* ] | ||
branches: [ master, develop, pre_*, ft_* ] | ||
|
||
jobs: | ||
build: | ||
|
@@ -13,7 +13,7 @@ jobs: | |
matrix: | ||
python-version: [3.6.14] | ||
poetry-version: [1.1.7] | ||
os: [ubuntu-18.04] | ||
os: [ubuntu-20.04] | ||
runs-on: ${{ matrix.os }} | ||
|
||
env: | ||
|
@@ -23,26 +23,30 @@ jobs: | |
DB_PORT: 3306 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: samin/[email protected] | ||
with: | ||
mysql version: '5.7' | ||
mysql database: ${{ env.DB_DATABASE }} | ||
mysql root password: ${{ env.DB_PASSWORD }} | ||
mysql user: ${{ env.DB_USER }} | ||
mysql password: ${{ env.DB_PASSWORD }} | ||
- name: Install poetry | ||
run: pipx install poetry==${{ matrix.poetry-version }} | ||
- name: Export requirements.txt | ||
run: | | ||
cd src/api/ | ||
bash bin/export_requirements_txt.sh | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Set up Poetry | ||
uses: abatilo/[email protected] | ||
with: | ||
poetry-version: ${{ matrix.poetry-version }} | ||
cache: 'pip' | ||
cache-dependency-path: 'src/api/requirements.txt' | ||
- name: Install dependencies | ||
run: | | ||
cd src/api/ | ||
poetry config virtualenvs.create false && bash bin/install_ci_dependencies.sh | ||
pip install -r requirements.txt -i https://pypi.org/simple/ | ||
- name: Run api unittest | ||
env: | ||
DJANGO_SETTINGS_MODULE: "bkuser_core.config.overlays.unittest" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters