Skip to content

Commit

Permalink
Add gh-actions continuous integration
Browse files Browse the repository at this point in the history
  • Loading branch information
munichpavel committed Sep 6, 2023
1 parent c4b407f commit 074aa35
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: continuous-integration
on: push

env:
PROJECT_ROOT: ${{ github.workspace }}

jobs:
tests:
name: "Python ${{ matrix.python-version }} on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest"]
python-version: ["3.9", "3.10", "3.11"]

steps:
- uses: "actions/checkout@v3"
- uses: "actions/setup-python@v4"
with:
python-version: "${{ matrix.python-version }}"
- name: "Install package dependencies"
run: |
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel
python -m pip install --use-pep517 . # TODO pep517 flag; see #36
python -m pip install --use-pep517 -r requirements.txt # TODO pep517 flag; see #36
- name: "Run package tests for ${{ matrix.python-version }}, ${{ matrix.os }}"
run: "python -m pytest -vv"

0 comments on commit 074aa35

Please sign in to comment.