Skip to content

Commit

Permalink
fix: fix github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Jul 20, 2023
1 parent fa96ba9 commit 016e376
Showing 1 changed file with 26 additions and 11 deletions.
37 changes: 26 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,38 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.8'
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1.3
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements_test.txt
pip install codecov
run: poetry install
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'

- name: Install dependencies
run:
poetry install
- name: Launch quality checks
run: |
flake8 .
black --check .
mypy .
isort --check .
poetry run flake8 .
poetry run black --check .
poetry run mypy .
poetry run isort --check .
- name: Test with pytest
run: |
pytest tests
poetry run pytest tests

0 comments on commit 016e376

Please sign in to comment.