Skip to content

Fix poetry version

Fix poetry version #18

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python package
on:
push:
branches: [ develop, main ]
pull_request:
branches: [ develop, main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
poetry-version: ["1.5.1", "1.4.2", "1.3.2", "1.2.2"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Set up Poetry ${{ matrix.poetry-version }}
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- name: View poetry --help
run: poetry --help
- name: Install dependencies
run: |
wget https://github.com/jgm/pandoc/releases/download/3.1.3/pandoc-3.1.3-1-amd64.deb
sudo dpkg -i ./pandoc-3.1.3-1-amd64.deb
poetry install
- name: Test with tox
run: |
poetry run tox -e style
poetry run tox -e linter
poetry run tox -e py
cov:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Set up Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: '1.5'
- name: Install dependencies
run: |
wget https://github.com/jgm/pandoc/releases/download/3.1.3/pandoc-3.1.3-1-amd64.deb
sudo dpkg -i ./pandoc-3.1.3-1-amd64.deb
poetry install
- name: Test
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
poetry run tox -e coverage
coveralls