FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-1/.github/workflows/ci-workflow.yml at master · kshama94/python-1 · GitHub
kshama94
python-1
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-1
/
.github
/
workflows
/
ci-workflow.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
66 lines (62 loc) · 2.11 KB
Breadcrumbs
python-1
/
.github
/
workflows
/
ci-workflow.yml
Copy path
File metadata and controls
66 lines (62 loc) · 2.11 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#
This workflow will install Python dependencies, run tests and lint with a single version of Python
#
For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name
:
Exercises check
on
:
push
:
branches
:
-
master
pull_request
:
jobs
:
housekeeping
:
runs-on
:
ubuntu-16.04
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Set up Python 3.7
uses
:
actions/setup-python@v1
with
:
python-version
:
3.7
-
name
:
Download & Install dependencies
run
:
|
./bin/fetch-configlet
python -m pip install --upgrade pip
pip install flake8 requests
git clone https://github.com/exercism/problem-specifications spec
pip install -r requirements-generator.txt
-
name
:
Check readmes
run
:
|
./bin/check-readmes.sh
-
name
:
Generate tests
run
:
|
bin/generate_tests.py --verbose -p spec --check
# May provide more useful output than configlet fmt
# if JSON is not valid or items are incomplete
./bin/configlet lint .
# Verify correct formatting in config.json
./bin/configlet fmt . && git diff --quiet
-
name
:
Lint with flake8
run
:
|
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
-
name
:
Test version status
run
:
|
./bin/check-test-version.py -p spec
-
name
:
Test template status
continue-on-error
:
true
run
:
|
./bin/template_status.py -v -p spec
canonical_sync
:
runs-on
:
ubuntu-16.04
needs
:
housekeeping
strategy
:
matrix
:
python-version
:
[3.5, 3.6, 3.7, 3.8]
steps
:
-
uses
:
actions/checkout@v2
-
uses
:
actions/setup-python@v1
with
:
python-version
:
${{ matrix.python-version }}
-
name
:
Check exercises
run
:
|
./test/check-exercises.py
Back
|
FazBrowse Home
|
New Git URL