Changed the Github action strategy
This commit is contained in:
parent
92f5f387a6
commit
28a8a60aaa
|
|
@ -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: |
|
||||
|
|
|
|||
Loading…
Reference in New Issue