Skip to content

Commit 14a8995

Browse files
authored
Merge pull request #15 from sandialabs/add-ci
Add continuous integration workflow
2 parents 33277c4 + c2ab413 commit 14a8995

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Continuous Integration
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
workflow_dispatch:
9+
10+
defaults:
11+
run:
12+
shell: bash
13+
14+
jobs:
15+
test:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
20+
steps:
21+
22+
- name: Check out the commit
23+
uses: actions/checkout@v3
24+
25+
- name: Set up Python
26+
uses: actions/setup-python@v4
27+
with:
28+
python-version: ~${{ matrix.version }}
29+
30+
- name: Install development dependencies
31+
run: |
32+
python3 -m pip install --upgrade pip
33+
python3 -m pip install \
34+
-r requirements.txt \
35+
-r test/requirements.txt
36+
37+
- name: Test install
38+
run: python3 -m pip install .
39+
40+
- name: Test with pytest
41+
run: python3 -m pytest --cov=staged_script test/
42+
43+
- name: Upload coverage reports to Codecov
44+
uses: codecov/codecov-action@v4
45+
env:
46+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
47+
48+
- name: Test uninstall
49+
run: python3 -m pip uninstall -y reverse_argparse
50+
51+
commits:
52+
runs-on: ubuntu-latest
53+
steps:
54+
- name: Conventional Commits
55+
uses: taskmedia/[email protected]
56+
with:
57+
types: >
58+
build|chore|ci|docs|feat|fix|minor|patch|perf|style|refactor|test

0 commit comments

Comments
 (0)