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

Commit8712df0

Browse files
authored
GitHub actions (python#1848)
* initial work on github actions* env var for DB url* test failure...* Revert "test failure..."This reverts commitb4b62b4.* remove travis
1 parent83438db commit8712df0

File tree

2 files changed

+39
-22
lines changed

2 files changed

+39
-22
lines changed

‎.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name:CI
2+
on:[push, pull_request]
3+
jobs:
4+
test:
5+
runs-on:ubuntu-latest
6+
services:
7+
postgres:
8+
image:postgres:10.1
9+
ports:
10+
-5432:5432
11+
steps:
12+
-name:Check out repository
13+
uses:actions/checkout@v2
14+
-uses:actions/setup-python@v2
15+
with:
16+
python-version:3.9.6
17+
-name:Cache Python dependencies
18+
uses:actions/cache@v2
19+
env:
20+
cache-name:pythondotorg-cache-pip
21+
with:
22+
path:~/.cache/pip
23+
key:${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('requirements.txt', '*-requirements.txt') }}
24+
restore-keys:|
25+
${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-
26+
${{ runner.os }}-${{ github.job }}-
27+
${{ runner.os }}-
28+
-name:Install Python dependencies
29+
run:|
30+
pip install -U pip setuptools wheel
31+
pip install -r dev-requirements.txt
32+
-name:Run Tests
33+
run:|
34+
python -Wd -m coverage run manage.py test -v2
35+
env:
36+
DATABASE_URL:postgres://postgres:@127.0.0.1:5432/python.org
37+
-name:Coverage
38+
run:|
39+
coverage report -m --fail-under=75

‎.travis.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp