-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b6c4a97
commit e67a1ff
Showing
1 changed file
with
2 additions
and
15 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Build and Test | |
|
||
on: | ||
merge_group: | ||
pull_request_target: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
|
@@ -18,12 +18,6 @@ concurrency: | |
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} | ||
|
||
jobs: | ||
authorize: | ||
name: Authorize | ||
environment: ${{ github.actor != 'dependabot[bot]' && github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && 'external' || 'internal' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: true | ||
|
||
run: | ||
needs: authorize # Require approval before running on forked pull requests | ||
|
@@ -47,13 +41,11 @@ jobs: | |
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | ||
python-version: ["3.12"] | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha || github.ref }} | ||
|
||
- name: Configure Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
|
@@ -62,7 +54,6 @@ jobs: | |
|
||
- name: Configure dependencies | ||
run: | | ||
sudo apt install bubblewrap | ||
pip install --user --upgrade pip | ||
pip install --user pipx | ||
pip install --user setuptools | ||
|
@@ -86,7 +77,3 @@ jobs: | |
# flake8 . --count --show-source --statistics | ||
# isort . --diff --profile black | ||
# pyupgrade . --py37-plus --keep-runtime-typing | ||
|
||
- if: ${{ matrix.python-version == '3.10' }} | ||
name: Upload coverage | ||
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # [email protected] |