Skip to content

Commit 53bae63

Browse files
manrajgroverManraj Singh Grover
and
Manraj Singh Grover
authored
Integrates Github Actions (#184)
* 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]>
1 parent 89c7934 commit 53bae63

14 files changed

+445
-370
lines changed

.github/workflows/main.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: halo
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
test:
11+
name: Test with ${{ matrix.python-version }} on ${{ matrix.os }}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
python-version:
17+
- "3.8"
18+
- "3.9"
19+
- "3.10"
20+
- "3.11"
21+
os:
22+
- ubuntu-latest
23+
- macos-latest
24+
- windows-latest
25+
26+
steps:
27+
- uses: actions/checkout@v4
28+
- name: Setup python for test ${{ matrix.python-version }}
29+
uses: actions/setup-python@v3
30+
with:
31+
python-version: ${{ matrix.python-version }}
32+
- name: Install dependencies
33+
run: |
34+
python --version
35+
python -m pip install --upgrade pip setuptools wheel
36+
pip --version
37+
python -m pip install --upgrade tox tox-gh>=1.2
38+
tox --version
39+
- name: Run tox targets for ${{ matrix.python-version }}
40+
run: |
41+
python -m tox

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ cover/
105105

106106
# tests
107107
tests/*.txt
108+
.pytest_cache
108109

109110
# OS-specific files
110111
.DS_Store

0 commit comments

Comments
 (0)