From 28a8a60aaad722995cb47ab43e31dccfece5ab37 Mon Sep 17 00:00:00 2001 From: Maximilien Rigaut Date: Wed, 2 Feb 2022 04:38:26 +0100 Subject: [PATCH] Changed the Github action strategy --- .github/workflows/python-app.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 6b70fdb..d1a5540 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -8,26 +8,28 @@ on: branches: [ main, test ] pull_request: branches: [ main, test ] - schedule: - - cron: '0 6 * * *' jobs: build: - - runs-on: ubuntu-latest - + runs-on: ${{ matrix.os }} + strategy: + matrix: + python-version: [ "3.7", "3.8" ] + os: [ windows-latest, ubuntu-latest ] steps: - uses: actions/checkout@v2 - - name: Set up Python 3.10 + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 with: - python-version: "3.10" + python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade pip pip install flake8 pytest pip install -r requirements_dev.txt + - name: Install the application + run: | pip install -e . - name: Lint with flake8 run: |