Skip to content

Commit

Permalink
Runs unit tests and checks different configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreMiras committed Apr 11, 2020
1 parent ecec65c commit c110aad
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 30 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: echo test
- uses: actions/setup-python@v1

self:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Self
- name: Unit tests
run: make test

- name: With GITHUB_TOKEN
uses: ./
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: With COVERALLS_REPO_TOKEN
uses: ./
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}

- name: With GITHUB_TOKEN and COVERALLS_REPO_TOKEN
uses: ./
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ DOCKER_IMAGE_LINUX=andremiras/coveralls-python-action


$(VIRTUAL_ENV):
virtualenv --python $(PYTHON_WITH_VERSION) $(VIRTUAL_ENV)
$(PYTHON_WITH_VERSION) -m venv $(VIRTUAL_ENV)
$(PIP) install --requirement requirements.txt

virtualenv: $(VIRTUAL_ENV)
Expand Down Expand Up @@ -48,6 +48,11 @@ format/black: virtualenv

format: format/isort format/black

clean:
rm -rf .pytest_cache/
find . -type d -name "__pycache__" -exec rm -r {} +
find . -type d -name "*.egg-info" -exec rm -r {} +

docker/build:
docker build --tag=$(DOCKER_IMAGE_LINUX) .

Expand Down
21 changes: 0 additions & 21 deletions entrypoint.py

This file was deleted.

0 comments on commit c110aad

Please sign in to comment.