FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python/.github/workflows/ci-workflow.yml at main · sijis/python · GitHub
sijis
python
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python
/
.github
/
workflows
/
ci-workflow.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
73 lines (59 loc) · 2.01 KB
Breadcrumbs
python
/
.github
/
workflows
/
ci-workflow.yml
Copy path
File metadata and controls
73 lines (59 loc) · 2.01 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
67
68
69
70
71
72
73
#
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
-
main
pull_request
:
jobs
:
housekeeping
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2.4.0
-
name
:
Set up Python
uses
:
actions/setup-python@v2.3.1
with
:
python-version
:
3.8
-
name
:
Download & Install dependencies
run
:
|
python -m pip install --upgrade pip
pip install flake8 requests
git clone https://github.com/exercism/problem-specifications .problem-specifications
pip install -r requirements-generator.txt
#
- name: Check readmes
#
run: |
#
./bin/check-readmes.sh
-
name
:
Generate tests
run
:
|
bin/generate_tests.py --verbose -p .problem-specifications --check
-
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 template status
continue-on-error
:
true
run
:
|
./bin/template_status.py -v -p .problem-specifications
canonical_sync
:
runs-on
:
ubuntu-latest
needs
:
housekeeping
strategy
:
matrix
:
python-version
:
[3.6, 3.7, 3.8, 3.9]
steps
:
-
uses
:
actions/checkout@v2.4.0
-
uses
:
actions/setup-python@v2.3.1
with
:
python-version
:
${{ matrix.python-version }}
-
name
:
Install dataclasses package
if
:
${{ matrix.python-version == '3.6' }}
run
:
pip install dataclasses
-
name
:
Install pytest
run
:
pip install pytest
-
name
:
Check exercises
run
:
|
./bin/test_exercises.py
Back
|
FazBrowse Home
|
New Git URL