Skip to content

Commit

Permalink
Update tests.yml
Browse files Browse the repository at this point in the history
- adding commands for windows and macos
  • Loading branch information
carlkidcrypto committed Nov 30, 2023
1 parent a914323 commit 02f1a71
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,35 @@ jobs:
python -m pip install coverage ;
python -m pip install requests_mock ;
python -m pip install purpleair_api ;

macos: cd /home/runner/work/purpleair_data_logger/purpleair_data_logger/ ;
python -m pip install --upgrade wheel ;
python -m pip install --upgrade setuptools ;
python -m pip install --upgrade pip ;
python -m pip install coverage ;
python -m pip install requests_mock ;
python -m pip install purpleair_api ;

windows: cd /home/runner/work/purpleair_data_logger/purpleair_data_logger/ ;
python -m pip install --upgrade wheel ;
python -m pip install --upgrade setuptools ;
python -m pip install --upgrade pip ;
python -m pip install coverage ;
python -m pip install requests_mock ;
python -m pip install purpleair_api ;

- name: Run unit tests...
uses: knicknic/[email protected]
with:
linux: cd /home/runner/work/purpleair_data_logger/purpleair_data_logger/tests ;
coverage run -m unittest && coverage json ;

macos: cd /home/runner/work/purpleair_data_logger/purpleair_data_logger/tests ;
coverage run -m unittest && coverage json ;

windows: cd /home/runner/work/purpleair_data_logger/purpleair_data_logger/tests ;
coverage run -m unittest && coverage json ;

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
Expand Down

0 comments on commit 02f1a71

Please sign in to comment.