Skip to content
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

Test system modified #165

Merged
merged 1 commit into from
Dec 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ name: CI

on: [push, pull_request]

env:
TEST_PYTHON_VERSION: 3.9
TEST_OS: 'ubuntu-20.04'

jobs:
build:

Expand Down Expand Up @@ -38,27 +42,27 @@ jobs:
libxcb-shape0-dev libxcb-util0-dev libx11-xcb-dev \
libxcb-cursor-dev libxcb-xkb-dev libxcb-xfixes0-dev \
libxkbcommon-dev libxkbcommon-x11-dev libxkbcommon-x11-0
if: matrix.os == 'ubuntu-20.04'
if: matrix.os == env.TEST_OS
- name: Test (Ubuntu)
run: |
xvfb-run python -m gopem --test
if: matrix.os == 'ubuntu-20.04'
if: matrix.os == env.TEST_OS
- name: Test (Windows)
run: |
python -m gopem --test
if: matrix.os != 'ubuntu-20.04'
if: matrix.os != env.TEST_OS
- name: Other tests requirements Installation
run: |
python rsrc/requirements-splitter.py
pip install --upgrade --upgrade-strategy=only-if-needed -r test-requirements.txt
if: matrix.python-version == 3.8
if: matrix.python-version == env.TEST_PYTHON_VERSION
- name: Version check
run: |
python rsrc/version_check.py
if: matrix.python-version == 3.8
if: matrix.python-version == env.TEST_PYTHON_VERSION
- name: Other tests
run: |
python -m vulture --min-confidence 65 --sort-by-size gopem rsrc setup.py
python -m bandit -r gopem
python -m pydocstyle -v --match-dir=gopem
if: matrix.python-version == 3.8
if: matrix.python-version == env.TEST_PYTHON_VERSION