forked from HelloGitHub-Team/Hydra
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.6 KB
/
hydra.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: hydra
on:
push:
branches: main
pull_request:
branches: main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9.1]
steps:
- uses: mirromutth/[email protected]
with:
character set server: 'utf8' # Optional, default value is 'utf8mb4'. The '--character-set-server' option for mysqld
collation server: 'utf8_general_ci' # Optional, default value is 'utf8mb4_general_ci'. The '--collation-server' option for mysqld
mysql version: '8.0' # Optional, default value is "latest". The version of the MySQL
mysql database: 'hellogithub' # Optional, default value is "test". The specified database which will be create
mysql root password: 123456 # Required if "mysql user" is empty, default is empty. The root superuser password
- uses: actions/checkout@v2
- name: Create env file
run: |
touch .local_env.yaml
echo "${{ secrets.LOCAL_ENV }}" > .local_env.yaml
cat .local_env.yaml
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install poetry==1.1.4 && poetry config virtualenvs.create false --local
poetry install --no-root
- name: update coverage
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
run: |
pytest --cov=hydra --cov-report=xml hydra/tests --cov-fail-under=95
python-codacy-coverage -r coverage.xml