Skip to content

Commit

Permalink
Merge pull request #7 from unicamp-mc426/fix/python_3_12
Browse files Browse the repository at this point in the history
fix/python_3_12

Installation was breaking in Python 3.12, it is now fixed, and we made some improvements:
- less dependencies and static analysis to make it easier to understand ci concepts;
- dependencies are now up to date;
- the project is now working from Python 3.8.18 up to 3.13 (which was not even released yet);
- some test smells were fixed;
  • Loading branch information
andreportela authored Sep 12, 2024
2 parents 731b4b8 + fd23fdb commit 8976107
Show file tree
Hide file tree
Showing 6 changed files with 735 additions and 3,246 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,38 +7,29 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
python-version: ["3.8.18", "3.9.20", "3.10.15", "3.11", "3.12", "3.13.0-rc.2"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install poetry
run: pipx install poetry

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
- run: poetry install --no-root

- name: Analysing the code with isort
run: poetry run isort --check --diff .

- name: Analysing the code with flake8
run: poetry run flake8

- name: Analysing the code with black
run: poetry run black --check --diff --color .

- name: Analysing the code with prospector
run: poetry run prospector --no-autodetect

- name: Testing
run: |
poetry run coverage run --source . --module pytest
poetry run coverage report --show-missing
poetry run coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4

Loading

0 comments on commit 8976107

Please sign in to comment.