Skip to content

Commit

Permalink
Use GH actions (pyzo#777)
Browse files Browse the repository at this point in the history
* Use GH actions

* fix

* ci

* ci

* ci
  • Loading branch information
almarklein authored Dec 20, 2021
1 parent a64fe3f commit 7229621
Show file tree
Hide file tree
Showing 2 changed files with 101 additions and 213 deletions.
101 changes: 101 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:

lint-build:
name: Linting
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dev dependencies
run: |
python -m pip install --upgrade pip
pip install -U black flake8 flake8-black
- name: Flake8
run: |
flake8 .
test-builds:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
# Python versions
- name: Test Linux py36
os: ubuntu-latest
pyversion: '3.6'
qtlib: pyside6
- name: Test Linux py37
os: ubuntu-latest
pyversion: '3.7'
qtlib: pyside6
- name: Test Linux py38
os: ubuntu-latest
pyversion: '3.8'
qtlib: pyside6
- name: Test Linux py39
os: ubuntu-latest
pyversion: '3.9'
qtlib: pyside6
# OS's
- name: Test Windows py310
os: windows-latest
pyversion: '3.10'
qtlib: pyside6
- name: Test MacOS py310
os: macos-latest
pyversion: '3.10'
qtlib: pyside6
# Qt libs
- name: Test Linux py310 PyQt5
os: ubuntu-latest
pyversion: '3.10'
qtlib: pyqt5
- name: Test Linux py310 PyQt6
os: ubuntu-latest
pyversion: '3.10'
qtlib: pyqt6
- name: Test Linux py310 PySide2
os: ubuntu-latest
pyversion: '3.10'
qtlib: pyside2
- name: Test Linux py310 PySide6
os: ubuntu-latest
pyversion: '3.10'
qtlib: pyside6
steps:
- uses: actions/checkout@v2
- name: Setup os
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get install libegl1-mesa
- name: Set up Python ${{ matrix.pyversion }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.pyversion }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U pytest
pip install -U ${{ matrix.qtlib }}
- name: Install in development mode
run: |
pip install -e .
- name: Test on repo
run: |
pytest -v tests
# todo: add a dry-run or something so we actually boot Pyzo and close it
213 changes: 0 additions & 213 deletions azure-pipelines.yml

This file was deleted.

0 comments on commit 7229621

Please sign in to comment.