diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml index c58140c0d..e056651e6 100644 --- a/.github/workflows/auto-assign.yml +++ b/.github/workflows/auto-assign.yml @@ -6,7 +6,7 @@ jobs: run: runs-on: ubuntu-latest steps: - - uses: bubkoo/auto-assign@v1 + - uses: bubkoo/auto-assign@master with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} CONFIG_FILE: .github/auto-assign.yml diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 2ec5f6c56..39d77580d 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -14,20 +14,20 @@ coverage: branches: - master - develop - if_ci_failed: error #success, failure, error, ignore + if_ci_failed: error # success, failure, error, ignore informational: false only_pulls: false - patch: + patch: # Computes only the changes introduced in the PR default: # basic target: auto - threshold: 1% + threshold: 5% base: auto # advanced branches: - master - develop - if_ci_failed: error #success, failure, error, ignore + if_ci_failed: error # success, failure, error, ignore only_pulls: false flags: - "unit" diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index 1eee717d2..8a9ecfac0 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -18,9 +18,9 @@ jobs: matrix: python-version: ["3.9"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@main - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 + uses: actions/setup-python@main with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -28,7 +28,7 @@ jobs: python -m pip install --upgrade pip pip install .[all] pip install .[tests] - pip install pylint isort flake8 black + pip install pylint isort black - name: Run isort run: isort --check-only rocketpy/ tests/ docs/ --profile black - name: Run black @@ -36,8 +36,6 @@ jobs: with: options: "--check rocketpy/ tests/ docs/" jupyter: true - - name: Run flake8 - run: flake8 rocketpy/ tests/ - name: Run pylint run: | pylint rocketpy/ tests/ diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 818f4af05..8724c2a94 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -15,9 +15,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@main - name: Set up Python - uses: actions/setup-python@v3 + uses: actions/setup-python@main with: python-version: "3.9" - name: Install dependencies @@ -27,7 +27,7 @@ jobs: - name: Build package run: python -m build - name: Publish package - uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 + uses: pypa/gh-action-pypi-publish@master with: user: __token__ password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/.github/workflows/test-pytest-slow.yaml b/.github/workflows/test-pytest-slow.yaml index 5f6ba8af7..76e6e7e28 100644 --- a/.github/workflows/test-pytest-slow.yaml +++ b/.github/workflows/test-pytest-slow.yaml @@ -3,7 +3,6 @@ name: Scheduled Tests on: schedule: - cron: "0 17 * * 5" # at 05:00 PM, only on Friday - timezone: "America/Sao_Paulo" push: branches: - main @@ -22,16 +21,13 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - fail-fast: false python-version: [3.9, 3.13] - env: - OS: ${{ matrix.os }} PYTHON: ${{ matrix.python-version }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@main - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@main with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/test_pytest.yaml b/.github/workflows/test_pytest.yaml index 64f5cd82c..97fb068cc 100644 --- a/.github/workflows/test_pytest.yaml +++ b/.github/workflows/test_pytest.yaml @@ -24,14 +24,14 @@ jobs: OS: ${{ matrix.os }} PYTHON: ${{ matrix.python-version }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@main - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@main with: python-version: ${{ matrix.python-version }} - name: Cache Python dependencies - uses: actions/cache@v3 + uses: actions/cache@main with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements-tests.txt') }} @@ -64,20 +64,22 @@ jobs: run: pytest tests/acceptance --cov=rocketpy --cov-append --cov-report=xml - name: Upload coverage to artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@main with: name: coverage path: coverage.xml + overwrite: true + if-no-files-found: error CodecovUpload: needs: Pytest runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Download all coverage reports - uses: actions/download-artifact@v3 + - uses: actions/checkout@main + - name: Download latest coverage report + uses: actions/download-artifact@main - name: Upload to Codecov - uses: codecov/codecov-action@v4 + uses: codecov/codecov-action@main with: token: ${{ secrets.CODECOV_TOKEN }} files: | diff --git a/.github/workflows/upload-to-codecov.yml b/.github/workflows/upload-to-codecov.yml index 431131c2a..e83be8536 100644 --- a/.github/workflows/upload-to-codecov.yml +++ b/.github/workflows/upload-to-codecov.yml @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Upload coverage report to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@main with: token: ${{ inputs.codecov_token }} directory: ./coverage/reports/ diff --git a/.vscode/settings.json b/.vscode/settings.json index 53e4c76d9..6337fe44b 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -92,6 +92,7 @@ "disp", "displaystyle", "docstrings", + "doctest", "Doretto", "dtype", "dunder", @@ -240,6 +241,7 @@ "prometheus", "pydata", "pylint", + "pylintrc", "PYPI", "pyplot", "pyproject",