Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 566 #2

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: test

env:
POETRY_VERSION: '1.3.1'

on:
push:
pull_request:
Expand All @@ -26,12 +29,24 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
cache: pip
cache: poetry

- name: Install poetry
run: pip3 install poetry

- name: Install libraries for ubuntu
if: matrix.os == 'ubuntu-20.04'
run: sudo apt-get install libsndfile1

- name: Check poetry
uses: pre-commit-ci/lite-action@v1.0.1
if: always()
run: |
poetry export --without-hashes -o requirements.txt
poetry export --without-hashes --with dev -o requirements-dev.txt
poetry export --without-hashes --with test -o requirements-test.txt
poetry export --without-hashes --with license -o requirements-license.txt

- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
Expand Down
30 changes: 30 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,33 @@ repos:
types: [file, python]
stages: [push]
pass_filenames: false
- repo: https://github.com/python-poetry/poetry
rev: '1.3.1'
hooks:
- id: poetry-export
args: ["--without-hashes", "-o", "requirements.txt" ]
# - id: poetry-export
# name: poetry-export
# entry: poetry export --without-hashes -o requirements.txt
# language: python
# stages: [commit]
# pass_filenames: false
# - id: poetry-export-dev
# name: poetry-export-dev
# entry: poetry export --without-hashes --with dev -o requirements-dev.txt
# language: python
# stages: [commit]
# pass_filenames: false
# - id: poetry-export-test
# name: poetry-export-test
# entry: poetry export --without-hashes --with test -o requirements-test.txt
# language: python
# stages: [commit]
# pass_filenames: false
# - id: poetry-export-license
# name: poetry-export-license
# entry: poetry export --without-hashes --with license -o requirements-license.txt
# language: python
# stages: [commit]
# pass_filenames: false
#