From 174663b89da6396707c12ae1f7f356e5baad5060 Mon Sep 17 00:00:00 2001 From: Gui-FernandesBR Date: Wed, 6 Sep 2023 22:54:59 -0300 Subject: [PATCH 1/3] MAINT: update github workflows files - no longer assigns the issue to its author (only for PRs) - deleted the useless auto-assign-projects file - runs the pytest without the [all] option --- .github/auto-assign.yml | 7 +++++-- .github/workflows/auto-assign-projects | 21 --------------------- .github/workflows/auto-assign.yml | 4 +--- .github/workflows/test_pytest.yaml | 4 ++-- 4 files changed, 8 insertions(+), 28 deletions(-) delete mode 100644 .github/workflows/auto-assign-projects diff --git a/.github/auto-assign.yml b/.github/auto-assign.yml index 740c50523..5b0b21e2f 100644 --- a/.github/auto-assign.yml +++ b/.github/auto-assign.yml @@ -4,12 +4,13 @@ addReviewers: true # Set to 'author' to add PR's author as a assignee addAssignees: author -# A list of reviewers to be added to PRs (GitHub user name) +# A list of reviewers to be added to PRs (GitHub user name) reviewers: - Gui-FernandesBR - giovaniceotto - MateusStano - + - phmbressan + # A number of reviewers added to the PR # Set 0 to add all the reviewers (default: 0) numberOfReviewers: 0 @@ -17,3 +18,5 @@ numberOfReviewers: 0 # A list of keywords to be skipped the process if PR's title include it skipKeywords: - wip + - work in progress + - draft diff --git a/.github/workflows/auto-assign-projects b/.github/workflows/auto-assign-projects deleted file mode 100644 index 0c75b7aed..000000000 --- a/.github/workflows/auto-assign-projects +++ /dev/null @@ -1,21 +0,0 @@ -name: Auto Assign to Project(s) - -on: - issues: - types: [opened] - pull_request: - types: [opened] -env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - -jobs: - assign_one_project: - runs-on: ubuntu-latest - name: Assign to One Project - steps: - - name: Assign NEW issues and NEW pull requests to RocketPy's main project - uses: srggrs/assign-one-project-github-action@1.3.1 - if: github.event.action == 'opened' - with: - project: 'https://github.com/orgs/RocketPy-Team/projects/1' - column_name: '🆕 New' diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml index 122a3107d..c58140c0d 100644 --- a/.github/workflows/auto-assign.yml +++ b/.github/workflows/auto-assign.yml @@ -1,7 +1,5 @@ -name: Auto Assign Issues and PRs once opened +name: Auto Assign PRs once opened on: - issues: - types: [opened] pull_request: types: [opened] jobs: diff --git a/.github/workflows/test_pytest.yaml b/.github/workflows/test_pytest.yaml index c06c3d1f6..615485b24 100644 --- a/.github/workflows/test_pytest.yaml +++ b/.github/workflows/test_pytest.yaml @@ -24,9 +24,9 @@ jobs: run: | python -m pip install --upgrade pip pip install -r requirements-tests.txt - - name: Build RocketPy + - name: Build RocketPy (without optional dependencies) run: | - pip install -e.[all] + pip install -e. - name: Test with pytest run: | pytest From 9ddcec928a2e7fb5e7bfafb2f229a90a9a5796b1 Mon Sep 17 00:00:00 2001 From: Gui-FernandesBR Date: Thu, 7 Sep 2023 12:35:01 -0300 Subject: [PATCH 2/3] TST: test the import rocketpy --- .github/workflows/test_pytest.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test_pytest.yaml b/.github/workflows/test_pytest.yaml index 615485b24..e0a6e9325 100644 --- a/.github/workflows/test_pytest.yaml +++ b/.github/workflows/test_pytest.yaml @@ -27,6 +27,9 @@ jobs: - name: Build RocketPy (without optional dependencies) run: | pip install -e. + - name: Import rocketpy in python and test if it works + run: | + python -c "import sys, rocketpy; print(f'{rocketpy.__name__} running on Python {sys.version}')" - name: Test with pytest run: | pytest From 53415480f94b7209a640c3dc6fe173816f69660e Mon Sep 17 00:00:00 2001 From: Gui-FernandesBR Date: Sun, 10 Sep 2023 01:17:23 -0300 Subject: [PATCH 3/3] GIT: improve pytest workflow based on rev --- .github/workflows/test_pytest.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_pytest.yaml b/.github/workflows/test_pytest.yaml index e0a6e9325..8d71eb857 100644 --- a/.github/workflows/test_pytest.yaml +++ b/.github/workflows/test_pytest.yaml @@ -23,13 +23,15 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -r requirements-tests.txt - name: Build RocketPy (without optional dependencies) run: | - pip install -e. + pip install . - name: Import rocketpy in python and test if it works run: | python -c "import sys, rocketpy; print(f'{rocketpy.__name__} running on Python {sys.version}')" + - name: Install optional dependencies + run: | + pip install -r requirements-tests.txt - name: Test with pytest run: | pytest