Changed the Github action strategy

This commit is contained in:
Maximilien Rigaut 2022-02-02 04:38:26 +01:00
parent 92f5f387a6
commit 28a8a60aaa
1 changed files with 9 additions and 7 deletions

View File

@ -8,26 +8,28 @@ on:
branches: [ main, test ] branches: [ main, test ]
pull_request: pull_request:
branches: [ main, test ] branches: [ main, test ]
schedule:
- cron: '0 6 * * *'
jobs: jobs:
build: build:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest strategy:
matrix:
python-version: [ "3.7", "3.8" ]
os: [ windows-latest, ubuntu-latest ]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up Python 3.10 - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: "3.10" python-version: ${{ matrix.python-version }}
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install flake8 pytest pip install flake8 pytest
pip install -r requirements_dev.txt pip install -r requirements_dev.txt
- name: Install the application
run: |
pip install -e . pip install -e .
- name: Lint with flake8 - name: Lint with flake8
run: | run: |