-
Notifications
You must be signed in to change notification settings - Fork 51
Tox testing #257
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
base: python-3
Are you sure you want to change the base?
Tox testing #257
Changes from all commits
715e7f1
83af770
44d6839
dece20f
152884e
833821c
fd36e03
e4469bd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| name: run unit tests with tox | ||
| run-name: ${{ github.actor }} run unit tests with tox | ||
| on: [push] | ||
| jobs: | ||
| run-tox: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| env: | ||
| - "3.10" | ||
| - "3.9" | ||
| library: | ||
| - "Common" | ||
| - "Server" | ||
| - "LabController" | ||
| - "Client" | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| # Use uv instead of actions/setup-python and setuptools/etc | ||
| - name: Install the latest version of uv | ||
| uses: astral-sh/setup-uv@v6 | ||
| with: | ||
| enable-cache: true | ||
| - name: Install Python | ||
| run: uv python install --python-preference only-managed ${{ matrix.env }} | ||
| - name: Install libkrb5-dev | ||
| run: sudo apt-get install -y libkrb5-dev | ||
| - name: Install tox | ||
| run: uv tool install --python-preference only-managed --python ${{ matrix.env }} tox --with ${{ matrix.library }}/ --with Common/ | ||
| - name: Setup test suite | ||
| run: tox run -vv --notest --skip-missing-interpreters false -e ${{ matrix.env }} | ||
| env: | ||
| UV_PYTHON_PREFERENCE: "only-managed" | ||
|
|
||
| - name: Run test suite | ||
| run: tox run --skip-pkg-install -e ${{ matrix.env }} | ||
| env: | ||
| PYTEST_ADDOPTS: "-vv" | ||
| UV_PYTHON_PREFERENCE: "only-managed" | ||
| TOXLIB: ${{ matrix.library }} | ||
|
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you make this run all the test suites (Server, LabController, etc).
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It does, but the actions are not active in this branch somehow |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,13 @@ | ||||||
| [testenv] | ||||||
| deps = nose | ||||||
| setuptools | ||||||
| six | ||||||
| lxml | ||||||
| gssapi | ||||||
| jinja2 | ||||||
| werkzeug | ||||||
| gevent | ||||||
| daemon | ||||||
| SQLAlchemy | ||||||
|
|
||||||
| commands = nosetests -v -w . Common {env:TOXLIB} | ||||||
|
||||||
| commands = nosetests -v -w . Common {env:TOXLIB} | |
| commands = nosetests -v -w . {env:TOXLIB}/Common {env:TOXLIB} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have the results of these jobs running on GitHub?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/pablmart/beaker/actions/runs/14935269510