Skip to content

Commit

Permalink
Add Continuous Integration via Github Action (#506)
Browse files Browse the repository at this point in the history
* Create ci.yml

* Update ci.yml

* Update ci.yml

* Update ci.yml

* Update ci.yml

* Update ci.yml

* Remove python 3.10

* Update ci.yml

Test py36

* Add py37

* Add fix for hook

* Add 3.8 and 3.9 back

* Try to add mypy as env

* Remove mypy from matrix and add as step

* Add windows and macos

* Update os

* Temporarily remove 3.8/3.9

* Back to ubuntu

* Update ci.yml

* Update ci.yml

* Add comment to describe behavior of running tox -e py
  • Loading branch information
jpdakran committed Feb 2, 2022
1 parent 3e8da51 commit 5484c1b
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 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: detect-secrets-ci

on:
push:
branches: [ master ]
pull_request:

jobs:
main:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python: ['3.6', '3.7', '3.8', '3.9']
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- run: python -m pip install --upgrade setuptools pip tox virtualenv
# Run tox only for the installed py version on the runner as outlined in the python matrix
# Ensures the correct py version is installed and tested as opposed to 'tox' which attempts to run for all py versions in tox.ini
- run: tox -e py
- run: tox -e mypy

0 comments on commit 5484c1b

Please sign in to comment.