GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Create GitHub action only for Project Euler (#3378) · D4VA/Python@5cb41e7

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • project_euler.yml
  • .travis.yml
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/project_euler.yml‎

Copy file name to clipboard
+30Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
on:
2+
pull_request:
3+
# only check if a file is changed within the project_euler directory
4+
paths:
5+
- 'project_euler/**'
6+
- '.github/workflows/project_euler.yml'
7+
8+
name: 'Project Euler'
9+
10+
jobs:
11+
project-euler:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-python@v2
16+
- name: Install pytest and pytest-cov
17+
run: |
18+
python -m pip install --upgrade pip
19+
python -m pip install --upgrade pytest pytest-cov
20+
- run: pytest --doctest-modules --durations=10 --cov-report=term-missing:skip-covered --cov=project_euler/ project_euler/
21+
validate-solutions:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v2
25+
- uses: actions/setup-python@v2
26+
- name: Install pytest
27+
run: |
28+
python -m pip install --upgrade pip
29+
python -m pip install --upgrade pytest
30+
- run: pytest --durations=10 project_euler/validate_solutions.py
Collapse file

‎.travis.yml‎

Copy file name to clipboardExpand all lines: .travis.yml
-10Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,6 @@ jobs:
1010
install: pip install pytest-cov -r requirements.txt
1111
script:
1212
- pytest --doctest-modules --ignore=project_euler/ --durations=10 --cov-report=term-missing:skip-covered --cov=. .
13-
- name: Project Euler
14-
install:
15-
- pip install pytest-cov
16-
script:
17-
- pytest --doctest-modules --durations=10 --cov-report=term-missing:skip-covered --cov=project_euler/ project_euler/
18-
- name: Project Euler Solution
19-
install:
20-
- pip install pytest
21-
script:
22-
- pytest --tb=short --durations=10 project_euler/validate_solutions.py
2313
after_success:
2414
- scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md
2515
notifications:

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.