From 754b44ebfd0b9922ef39b2e1ce9c9d3f7c96c32e Mon Sep 17 00:00:00 2001 From: Gabor Szabo Date: Sun, 11 Dec 2022 17:59:51 +0200 Subject: [PATCH 1/2] Add GitHub Actions --- .github/workflows/ci.yml | 42 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..58e9442 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,42 @@ +name: CI + +on: + push: + pull_request: + workflow_dispatch: + schedule: + - cron: '42 5 * * *' + +jobs: + test: + strategy: + fail-fast: false + matrix: + runner: [ubuntu-latest] #, macos-latest, windows-latest] + python-version: ["3.11"] + + runs-on: ${{matrix.runner}} + name: OS ${{matrix.runner}} Python ${{matrix.python-version}} + + steps: + - name: Checkout + 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 + run: | + pip install . + cd plugins + pip install . + cd .. + + - name: Check Python version + run: python -V + + - name: Test + run: PYTHONPATH=. python tests/test.py + From 942493bb2ccf5814bf1abd750c444210f40bc1c3 Mon Sep 17 00:00:00 2001 From: Gabor Szabo Date: Sun, 11 Dec 2022 18:03:53 +0200 Subject: [PATCH 2/2] more Python versions and OSes --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 58e9442..ce587fc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,8 +12,8 @@ jobs: strategy: fail-fast: false matrix: - runner: [ubuntu-latest] #, macos-latest, windows-latest] - python-version: ["3.11"] + runner: [ubuntu-latest, macos-latest, windows-latest] + python-version: ["3.9", "3.10", "3.11"] runs-on: ${{matrix.runner}} name: OS ${{matrix.runner}} Python ${{matrix.python-version}} @@ -29,14 +29,14 @@ jobs: - name: Install dependencies run: | - pip install . + pip install -e . cd plugins - pip install . + pip install -e . cd .. - name: Check Python version run: python -V - name: Test - run: PYTHONPATH=. python tests/test.py + run: python tests/test.py