Skip to content

Commit

Permalink
CI: use GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dulmandakh committed Jul 9, 2024
1 parent 4627315 commit 1b8a140
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Lint
on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.8
- run: pip install flake8 mypy
- run: flake8
- run: mypy promise --ignore-missing-imports
26 changes: 26 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Tests
on: [push, pull_request]

jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python:
- '2.7'
- '3.5'
- '3.6'
- '3.7'
- '3.8'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: 'pip'
cache-dependency-path: 'setup.py'
- run: pip install -e .[test]
- run: py.test --cov=promise tests
- name: Coveralls
uses: coverallsapp/github-action@v2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,5 @@ target/
/.pytest_cache
/.pyre
/.mypy_cache
/.venv
/type_info.json

0 comments on commit 1b8a140

Please sign in to comment.