Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip: github actions to run tests #43

Closed
wants to merge 25 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
b1bcaca
[#41] refactor: flake8 plugins and mypy installed
sudiptob2 Oct 6, 2022
66ca465
[#41] refactor: flake8 check configuration initial setup
sudiptob2 Oct 6, 2022
a72be96
[#41] refactor: flake8 errors fixed for __main__.py
sudiptob2 Oct 6, 2022
3e470f2
[#41] refactor: some flake8 checks are disabled
sudiptob2 Oct 6, 2022
366fad1
[#41] refactor: uppercase constants are allowed.
sudiptob2 Oct 6, 2022
2073d85
[#41] refactor: calls without explicit base class allowed
sudiptob2 Oct 6, 2022
6fd28d4
[#41] refactor: doctrsing in package made optional
sudiptob2 Oct 6, 2022
2059dfd
[#41] refactor: flake8 error in docstring fixed
sudiptob2 Oct 6, 2022
646169c
[#41] refactor: some strings refactored
sudiptob2 Oct 6, 2022
b805025
[#41] refactor: overused code fixed
sudiptob2 Oct 6, 2022
ba108f3
[#41] refactor: f string usage removed
sudiptob2 Oct 6, 2022
e1d5ddc
[#41] refactor: flake8 error fixed and config defined
sudiptob2 Oct 6, 2022
0710ae7
[#41] feature: code quality check script implemented
sudiptob2 Oct 6, 2022
d65b3fc
[#41] test: pytest-cov installed
sudiptob2 Oct 6, 2022
be7182a
[#41] refactor: mypy errors fixed
sudiptob2 Oct 6, 2022
7a0a7bb
wip: github actions to run tests
nilesh05apr Oct 6, 2022
1690263
Merge pull request #42 from sudiptob2/refactor/41-strict-flake8
sudiptob2 Oct 6, 2022
78b473a
update: update test action
nilesh05apr Oct 6, 2022
e0cdd79
update: update test action
nilesh05apr Oct 6, 2022
4634469
test: testing on single os and single python version
nilesh05apr Oct 6, 2022
61a9362
test: test on single os and single python version
nilesh05apr Oct 6, 2022
0028544
update: test scripts
nilesh05apr Oct 6, 2022
05e9297
update: test for multiple python versions
nilesh05apr Oct 6, 2022
8467515
update: test on windows
nilesh05apr Oct 6, 2022
545f764
update: repo udate
nilesh05apr Oct 6, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Test
on:
- pull_request
- push

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ['3.8', '3.9', '3.10']

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: |
python3 -m pip install --upgrade pip setuptools wheel
python3 -m pip install -r requirements.txt
pip install -e .
- name: create env file
run: |
touch config/.env
cat config/.env.template > config/.env
# Run tests
- name: Test
run: |
python3 --version
python3 -m pytest