From 2b3b3585afe3fdcf13ff47a229b4e3d3b5dacdc9 Mon Sep 17 00:00:00 2001 From: Corey Oordt Date: Wed, 12 Apr 2023 09:10:25 -0500 Subject: [PATCH] Added a github CI workflow. --- .github/workflows/ci.yaml | 45 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 00000000..1f111d60 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -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' > ~/.hgrc + hg --version + - name: Install test dependencies + run: pip install -r requirements/test.txt + - name: Test + run: pytest