Skip to content

Commit

Permalink
Integrates Github Actions (#184)
Browse files Browse the repository at this point in the history
* Removes travis and appveyor integrations

* Adds github action to performn lint tests

* Changes branch name to master

* Combines lint and test running github action into one

* Makes use of official tox github actions

* Fixes testing for specific versions

* Removes end of life versions

* Makes testing work for python 3.8+

* Removes backports.shutil_get_terminal_size as dependency

* Handles all warnings while running tests

---------

Co-authored-by: Manraj Singh Grover <[email protected]>
  • Loading branch information
manrajgrover and Manraj Singh Grover authored Jun 16, 2024
1 parent 89c7934 commit 53bae63
Show file tree
Hide file tree
Showing 14 changed files with 445 additions and 370 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: halo

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
test:
name: Test with ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
os:
- ubuntu-latest
- macos-latest
- windows-latest

steps:
- uses: actions/checkout@v4
- name: Setup python for test ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python --version
python -m pip install --upgrade pip setuptools wheel
pip --version
python -m pip install --upgrade tox tox-gh>=1.2
tox --version
- name: Run tox targets for ${{ matrix.python-version }}
run: |
python -m tox
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ cover/

# tests
tests/*.txt
.pytest_cache

# OS-specific files
.DS_Store
Expand Down
Loading

0 comments on commit 53bae63

Please sign in to comment.