Skip to content

Commit

Permalink
split actions config into build/test
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhantgoel committed Oct 28, 2020
1 parent b728540 commit 2fc4753
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 47 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: build

on: [push, pull_request]

jobs:
build_source:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Setup pip
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
pip install .
- name: Build source distribution
run: |
python setup.py sdist
twine check dist/*
build_wheel:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Setup pip
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
pip install .
- name: Build wheel
run: |
python setup.py bdist_wheel
twine check dist/*
47 changes: 0 additions & 47 deletions .github/workflows/main.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: test

on: [push, pull_request]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Setup pip
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
pip install .
- name: Lint with black
run: make lint-black
- name: Lint with flake8
run: make lint-flake8
- name: Lint with mypy
run: make lint-mypy

- name: Test with pytest
run: make test

0 comments on commit 2fc4753

Please sign in to comment.