-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate CI from CircleCI to Github Actions
- Loading branch information
1 parent
5d24eb1
commit 5c2c00b
Showing
2 changed files
with
38 additions
and
24 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
name: Unit Testing | ||
jobs: | ||
chore: | ||
name: Unit Tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
toxenv: [py37, py38, py39, flake8] | ||
include: | ||
- toxenv: py37 | ||
python-version: "3.7" | ||
- toxenv: py38 | ||
python-version: "3.8" | ||
- toxenv: py39 | ||
python-version: "3.9" | ||
- toxenv: flake8 | ||
python-version: "3.X" | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip install tox | ||
- name: Run Tox | ||
run: | | ||
tox -e ${{ matrix.toxenv }} |