Skip to content

Commit

Permalink
Added a github CI workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
coordt committed Apr 12, 2023
1 parent 5267ca2 commit 2b3b358
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI

on:
- push
- pull_request

defaults:
run:
shell: bash

jobs:

tox:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Check git is working
run: |
git config --global user.email "bumpversion-test-git@github.actions"
git config --global user.name "Testing Git"
git --version
git config --list
- name: Check mercurial is working
run: |
echo -e '[ui]\nusername = Testing Mercurial<bumpversion-test-hg@github.actions>' > ~/.hgrc
hg --version
- name: Install test dependencies
run: pip install -r requirements/test.txt
- name: Test
run: pytest

0 comments on commit 2b3b358

Please sign in to comment.