Skip to content

Commit

Permalink
update CI workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
taoufik07 committed Nov 11, 2023
1 parent 4bedf0b commit 009a0c6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 23 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
name: Lint

on: [push, pull_request]
on:
pull_request:
push:

jobs:
build:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.7

- name: Install dependencies
run: |
python -m pip install pipenv
pipenv install --dev --system
python-version: "3.10"

- name: Lint
run: pre-commit run --all-files --show-diff-on-failure
- uses: pre-commit/[email protected]
20 changes: 10 additions & 10 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,28 @@ name: Test
on: [push, pull_request]

jobs:
build:
runs-on: ${{ matrix.os }}
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
os: [ubuntu-latest, macos-latest]
python-version: [3.6, 3.7, 3.8, 3.9, "3.10"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pipenv'

- name: Install dependencies
run: |
python -m pip install pipenv
pipenv install --dev --system
python -m pip install --upgrade pip
python -m pip install --upgrade pipenv
pipenv install --dev
- name: Tests
run: |
python --version
pytest
pipenv run pytest

0 comments on commit 009a0c6

Please sign in to comment.