From f2c66259e7716878d3a6f533d99e2f8b067b604f Mon Sep 17 00:00:00 2001 From: Vincent Pochet Date: Tue, 31 May 2022 15:57:51 +0200 Subject: [PATCH] Add CI --- .github/worflows/main.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/worflows/main.yml diff --git a/.github/worflows/main.yml b/.github/worflows/main.yml new file mode 100644 index 00000000..a1b619c2 --- /dev/null +++ b/.github/worflows/main.yml @@ -0,0 +1,26 @@ +name: Python CI + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["2.7", "3.6", "3.7", "3.8", "3.9"] + + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + - name: Display Python version + run: python -c "import sys; print(sys.version)" + - name: Run tests + run: | + python3 -m unittest tests