Skip to content

Commit 795ec5a

Browse files
committed
Added some actions for CI, page building.
Fixed the setup to include the missing dependencies.
1 parent f8272ac commit 795ec5a

File tree

4 files changed

+80
-1
lines changed

4 files changed

+80
-1
lines changed

.github/workflows/build-docs.yaml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: Build docs
5+
6+
on:
7+
push:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Set up Python 3.9
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: 3.9
23+
cache: 'pip'
24+
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install flake8 pytest tox
29+
30+
- name: Build docs
31+
run: |
32+
tox -e docs
33+
34+
- name: GH Pages Deployment
35+
uses: JamesIves/github-pages-deploy-action@v4
36+
with:
37+
branch: gh-pages # The branch the action should deploy to.
38+
folder: ./docs/_build/html
39+
clean: true # Automatically remove deleted files from the deploy branch

.github/workflows/run-tests.yaml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: Test the library
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
branches: [ master ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
19+
20+
name: Python ${{ matrix.python-version }}
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- name: Setup Python
25+
uses: actions/setup-python@v5
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
cache: 'pip'
29+
30+
- name: Install dependencies
31+
run: |
32+
python -m pip install --upgrade pip
33+
pip install flake8 pytest tox
34+
35+
- name: Test with tox
36+
run: |
37+
tox

setup.cfg

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ package_dir =
4949
# For more information, check out https://semver.org/.
5050
install_requires =
5151
importlib-metadata; python_version<"3.8"
52-
52+
requests
53+
appdirs
5354

5455
[options.packages.find]
5556
where = src

src/pygobbler/start_gobbler.py

+2
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ def _initialize_gobbler_process(exe: str, staging: Optional[str], registry: Opti
113113
with socket.socket(socket.AF_INET) as s:
114114
s.bind(('0.0.0.0', 0))
115115
port = s.getsockname()[1]
116+
port = 8928
117+
print(os.getlogin())
116118
global test_port
117119
test_port = port
118120

0 commit comments

Comments
 (0)