Skip to content

Commit 5484c1b

Browse files
authored
Add Continuous Integration via Github Action (#506)
* 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
1 parent 3e8da51 commit 5484c1b

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Diff for: .github/workflows/ci.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: detect-secrets-ci
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
11+
jobs:
12+
main:
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
matrix:
16+
os: [ubuntu-latest, macos-latest]
17+
python: ['3.6', '3.7', '3.8', '3.9']
18+
steps:
19+
- uses: actions/checkout@v2
20+
- uses: actions/setup-python@v2
21+
with:
22+
python-version: ${{ matrix.python }}
23+
- run: python -m pip install --upgrade setuptools pip tox virtualenv
24+
# Run tox only for the installed py version on the runner as outlined in the python matrix
25+
# Ensures the correct py version is installed and tested as opposed to 'tox' which attempts to run for all py versions in tox.ini
26+
- run: tox -e py
27+
- run: tox -e mypy

0 commit comments

Comments
 (0)