Skip to content

Commit

Permalink
ci: Stub out workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgate committed Jun 10, 2024
1 parent 33277c4 commit c2ab413
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Continuous Integration

on:
push:
branches:
- master
pull_request:
workflow_dispatch:

defaults:
run:
shell: bash

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:

- name: Check out the commit
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ~${{ matrix.version }}

- name: Install development dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install \
-r requirements.txt \
-r test/requirements.txt
- name: Test install
run: python3 -m pip install .

- name: Test with pytest
run: python3 -m pytest --cov=staged_script test/

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: Test uninstall
run: python3 -m pip uninstall -y reverse_argparse

commits:
runs-on: ubuntu-latest
steps:
- name: Conventional Commits
uses: taskmedia/action-conventional-commits@v1.1.3
with:
types: >
build|chore|ci|docs|feat|fix|minor|patch|perf|style|refactor|test

0 comments on commit c2ab413

Please sign in to comment.