Skip to content
This repository was archived by the owner on Feb 22, 2020. It is now read-only.

Commit 6a004c8

Browse files
authored
Merge pull request #1 from Leterax/ci-setup
Create lint and test action
2 parents eb5ff36 + 2451418 commit 6a004c8

File tree

6 files changed

+38
-7
lines changed

6 files changed

+38
-7
lines changed

.github/workflows/lint_test.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Lint and test
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
os: [ubuntu-latest, windows-latest, macos-latest]
12+
13+
steps:
14+
- uses: actions/checkout@v1
15+
- name: Set up Python
16+
uses: actions/setup-python@v1
17+
with:
18+
python-version: 3.7
19+
- name: Install pipenv
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install pipenv
23+
- name: Install dependencies
24+
working-directory: ./brilliant-builders
25+
run: pipenv sync --dev
26+
- name: Lint
27+
working-directory: ./brilliant-builders
28+
run: |
29+
pipenv run lint
30+
- name: Test
31+
working-directory: ./brilliant-builders
32+
run: |
33+
pipenv run test

brilliant-builders/.flake8

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[flake8]
22
max-line-length=100
33
exclude=.cache,.venv,.svn,CVS,.bzr,.hg,.git,__pycache__,.tox
4+
ignore=TYP002,TYP003,TYP101,TYP102,TYP204,TYP206

brilliant-builders/Pipfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ flake8-import-order = "*"
99
flake8-tidy-imports = "*"
1010
flake8-annotations = "*"
1111
coverage = "*"
12+
flake8 = "*"
1213

1314
[packages]
1415
kivy = "~=1.11"

brilliant-builders/Pipfile.lock

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

brilliant-builders/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Brilliant Builders
2+
![CI badge](https://github.com/Leterax/code-jam-6/workflows/Lint%20and%20test/badge.svg)
23

34
This is our awesome README, lets be sure to add stuff here later!
45

brilliant-builders/tests/__init__.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)