Skip to content

Commit

Permalink
Adding CI checks with Tox
Browse files Browse the repository at this point in the history
  • Loading branch information
jdonaldson-llnl committed Oct 30, 2020
1 parent 184d4ea commit 7900b59
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
File renamed without changes.
40 changes: 40 additions & 0 deletions .github/workflows/test.yml
@@ -0,0 +1,40 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Test Python library

on:
push: []

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.5, 3.6, 3.7, 3.8]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip
uses: actions/cache@v2
with:
# This path is specific to Ubuntu
path: ~/.cache/pip
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- name: Run tox
run: |
cd ./contrib/python
pip install tox
tox -e py

0 comments on commit 7900b59

Please sign in to comment.