Update dependency poetry to v2 #138
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests & Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
name: Run Format & Linting Checks | |
container: | |
image: fedorapython/fedora-python-tox | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Mark the directory as safe for git | |
run: git config --global --add safe.directory $PWD | |
- name: Install RPM dependencies | |
run: | | |
dnf install -y krb5-devel libpq-devel gettext python-tox poetry | |
- name: Run tests | |
run: tox -e ${{ matrix.tox_env }} | |
strategy: | |
matrix: | |
tox_env: | |
- lint | |
- format | |
runs-on: ubuntu-latest | |
unit_tests: | |
name: Run the Unit Tests | |
container: fedorapython/fedora-python-tox:latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Mark the directory as safe for git | |
run: git config --global --add safe.directory $PWD | |
- name: Install RPM dependencies | |
run: | | |
dnf install -y krb5-devel libpq-devel gettext python-tox poetry | |
- name: Run tests | |
run: tox -e ${{ matrix.tox_env }} | |
strategy: | |
matrix: | |
tox_env: | |
- py39 | |
- py310 | |
- py311 | |
runs-on: ubuntu-latest |