Skip to content

Commit f997e96

Browse files
Merge pull request #62 from codecov/chore-migrate-to-gha
Migrate to GitHub Actions and CircleCI
2 parents 7488388 + e8b8aeb commit f997e96

File tree

5 files changed

+46
-54
lines changed

5 files changed

+46
-54
lines changed

.circleci/config.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
version: 2.1
2+
orbs:
3+
codecov: codecov/codecov@3.0.0
4+
5+
jobs:
6+
build:
7+
docker:
8+
- image: cimg/python:3.9.6
9+
steps:
10+
- checkout
11+
- run:
12+
name: Install dependencies
13+
command: pip install -r requirements.txt
14+
- run:
15+
name: Run tests and collect coverage
16+
command: |
17+
coverage run tests.py
18+
coverage xml
19+
- codecov/upload
20+
21+
workflow:
22+
version: 2.1
23+
build-test:
24+
jobs:
25+
- build

.github/workflows/ci.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Workflow for Codecov example-python
2+
on: [push, pull_request]
3+
jobs:
4+
run:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Checkout
8+
uses: actions/checkout@v2
9+
- name: Set up Python 3.9
10+
uses: actions/setup-python@v2
11+
with:
12+
python-version: 3.9
13+
- name: Install dependencies
14+
run: pip install -r requirements.txt
15+
- name: Run tests and collect coverage
16+
run: |
17+
coverage run tests.py
18+
coverage xml
19+
- name: Upload coverage to Codecov
20+
uses: codecov/codecov-action@v2

.travis.yml

-20
This file was deleted.

azure-pipelines.yml

-34
This file was deleted.

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
coverage

0 commit comments

Comments
 (0)