Skip to content

test with python 3.11 and 3.12 #39

test with python 3.11 and 3.12

test with python 3.11 and 3.12 #39

Workflow file for this run

name: CI
on: push
jobs:
test:
name: Test with Python ${{ matrix.python-version }}
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11", "3.12" ]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Install poetry
run: pip install poetry
- name: Set up virtualenv
run: make install
- name: Run tests
run: make test
- name: Build distributable package
run: make build
release:
name: Publish the package
needs: test
if: ${{ github.ref == 'refs/heads/master' }}
runs-on: ubuntu-22.04
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Checkout code
uses: actions/checkout@v2
- name: Install poetry
run: pip install poetry
- name: Install from source
run: make install
- name: Publish package to pypi
run: poetry publish --build -u ${{ secrets.PYPI_USER }} -p ${{ secrets.PYPI_PASSWORD }}