Skip to content

Commit e934739

Browse files
authored
Merge pull request #2 from ColumbiaOSS/tkp/actions
setup actions
2 parents de65223 + a6b7732 commit e934739

File tree

3 files changed

+72
-0
lines changed

3 files changed

+72
-0
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"

.github/workflows/build.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Build Status
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- v*
9+
paths-ignore:
10+
- CONTRIBUTING.md
11+
- LICENSE
12+
- README.md
13+
pull_request:
14+
workflow_dispatch:
15+
16+
jobs:
17+
build:
18+
runs-on: ${{ matrix.os }}
19+
20+
strategy:
21+
matrix:
22+
os: [ubuntu-latest]
23+
python-version: [3.9]
24+
25+
steps:
26+
- uses: actions/checkout@v3
27+
28+
- name: Set up Python ${{ matrix.python-version }}
29+
uses: actions/setup-python@v4
30+
with:
31+
python-version: ${{ matrix.python-version }}
32+
cache: "pip"
33+
cache-dependency-path: 'pyproject.toml'
34+
35+
- name: Install dependencies
36+
run: |
37+
make develop
38+
39+
- name: Build
40+
run: |
41+
make build
42+
43+
- name: Lint
44+
run: |
45+
make lint
46+
47+
- name: Checks
48+
run: |
49+
make checks
50+
51+
- name: Test
52+
run: |
53+
make coverage
54+
55+
- name: Upload test results
56+
uses: actions/upload-artifact@v3
57+
with:
58+
name: pytest-results-${{ matrix.os }}-${{ matrix.python-version }}
59+
path: python_junit.xml
60+
if: ${{ always() }}
61+
62+
- name: Upload coverage
63+
uses: codecov/codecov-action@v3

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# example-project-python
22
Example python project
33

4+
[![Build Status](https://github.com/ColumbiaOSS/example-project-python/workflows/Build%20Status/badge.svg?branch=main)](https://github.com/ColumbiaOSS/example-project-python/actions?query=workflow%3A%22Build+Status%22)
5+
[![codecov](https://codecov.io/gh/ColumbiaOSS/example-project-python/branch/main/graph/badge.svg)](https://codecov.io/gh/ColumbiaOSS/example-project-python)
6+
47
## Details
58
This project is a pure python project using modern tooling. It uses a `Makefile` as a command registry, with the following commands:
69
- `make`: list available commands

0 commit comments

Comments
 (0)