-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (36 loc) · 1.01 KB
/
main.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
name: build
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- run: |
echo "/home/runner/.pyenv/bin" >> $GITHUB_PATH
echo "/home/runner/.local/bin" >> $GITHUB_PATH
- uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: Set up checking environment
run: |
curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
pyenv install 3.6.3
echo "eval '$(pyenv init -)'" >> ~/.bashrc
eval "$(pyenv virtualenv-init -)" >> ~/.bashrc
source ~/.bashrc
pyenv global 3.6.3
pip install --upgrade pip
pip install pipenv
pip install coverage
- name: Lint with flake8
run: |
pipenv install --dev
pipenv run flake8 pytest_email
#continue-on-error: true
- name: Lint with pylint
run: |
pipenv run pylint pytest_email
#continue-on-error: true
- name: Run testing
run: |
pipenv run pytest
#continue-on-error: true