Skip to content
Merged
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
12 changes: 8 additions & 4 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install poetry
pipx install 'poetry>=2'
- name: Check tags
if: startsWith(github.event.ref, 'refs/tags')
id: tag
Expand All @@ -44,11 +44,11 @@ jobs:
poetryv=$(echo v$(poetry version | cut -d ' ' -f2))
echo $gitd
echo $poetryv
- name: Install package
run: poetry install -v
- name: Install package for testing
run: poetry install -v --all-extras
- name: Lint with flake8
run: |
pip install flake8
pipx install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings
Expand All @@ -57,6 +57,10 @@ jobs:
--max-line-length=127 --statistics
- name: Test with pytest
run: poetry run pytest --script-launch-mode=subprocess
- name: Reinstall package for production
run: |
poetry env list --full-path | xargs rm -rf
poetry install -v
- name: Build distribution package
id: build
run: |
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ RUN apt-get update \
&& pypy3.10 get-pip.py \
&& pypy3.10 get-poetry.py \
&& cd tact \
&& poetry self add poetry-plugin-export \
&& poetry export -f requirements.txt -o requirements.txt --without-hashes --only main \
&& pypy3.10 -mpip install -r requirements.txt --compile . \
&& cd .. \
Expand Down
Loading
Loading