Skip to content

Commit

Permalink
Merge pull request #2 from fronzbot/fix-github-workflow
Browse files Browse the repository at this point in the history
Add gtk installations
  • Loading branch information
fronzbot authored Oct 29, 2023
2 parents 082f5f0 + 11094d3 commit c6bbb66
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 9 deletions.
4 changes: 4 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[run]
parallel = true
omit =
tests/*
16 changes: 12 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
lint:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: [3.9]
Expand All @@ -22,12 +22,20 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
- name: Install GTK
run: |
sudo apt-get update
sudo apt-get install build-essential libgtk-3-dev
- name: Install wxPython
run: |
python -m pip install --upgrade pip
pip install -U -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-22.04 wxPython --user
- name: Install Dependencies
run: |
pip install -r requirements.txt
pip install -r requirements_test.txt
pip install tox
- name: Lint
run: |
tox -r -e lint
ruff check waferview tests
black --check --diff waferview tests
rst-lint README.rst
17 changes: 12 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,28 @@ jobs:
max-parallel: 4
matrix:
platform:
- ubuntu-latest
python-version: ['3.8', '3.9', '3.10', '3.11']
- ubuntu-22.04
python-version: ['3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
- name: Install GTK
run: |
sudo apt-get update
sudo apt-get install build-essential libgtk-3-dev
- name: Install wxPython
run: |
python -m pip install --upgrade pip
pip install -U -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-22.04 wxPython --user
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements_test.txt
pip install tox
- name: Tests
run: |
tox -r
pytest --timeout=9 --durations=10 -cov=waferview --cov-report term-missing
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ coverage.xml
.hypothesis/
.pytest_cache/
cover/
.ruff_cache/

# Translations
*.mo
Expand Down

0 comments on commit c6bbb66

Please sign in to comment.