Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfefda8c

Browse files
authored
Add files via upload
1 parenta1b7634 commitfefda8c

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

‎.github/workflows/test_pytest.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name:Python package
5+
6+
on:
7+
push:
8+
branches:[main]
9+
10+
jobs:
11+
build:
12+
runs-on:ubuntu-latest
13+
strategy:
14+
matrix:
15+
python-version:
16+
[3.6, 3.7, 3.8, 3.9, "3.10.0-beta.3"]
17+
18+
steps:
19+
-uses:actions/checkout@v2
20+
with:
21+
fetch-depth:9999
22+
-name:Set up Python ${{ matrix.python-version }}
23+
uses:actions/setup-python@v2
24+
with:
25+
python-version:${{ matrix.python-version }}
26+
27+
-name:Install dependencies and prepare tests
28+
run:|
29+
set -x
30+
python -m pip install --upgrade pip
31+
python --version; git --version
32+
git submodule update --init --recursive
33+
git fetch --tags
34+
35+
pip install -r dev-requirements.txt
36+
TRAVIS=yes ./init-tests-after-clone.sh
37+
38+
git config --global user.email "travis@ci.com"
39+
git config --global user.name "Travis Runner"
40+
# If we rewrite the user's config by accident, we will mess it up
41+
# and cause subsequent tests to fail
42+
cat test/fixtures/.gitconfig >> ~/.gitconfig
43+
44+
-name:Test with pytest
45+
run:|
46+
set -x
47+
pip install -r dev-requirements.txt
48+
pytest --cov --cov-report=term-missing:skip-covered
49+
# --cov-report=html:test/coverage
50+
continue-on-error:true
51+
52+
53+
54+
55+

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp