Skip to content

Commit

Permalink
Fix allow pre-releases for pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorjerse committed Jan 22, 2025
1 parent 30504fd commit ab4590f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ jobs:

# NOTE: If we are building the "master" branch or a pull request against the
# "master" branch, we allow installing pre-releases with the pip command.
- name: Allow pre-releases for master branch
if: github.ref == 'refs/heads/master'
run: echo "PIP_PRE=1" >> $GITHUB_ENV
- name: Allow pre-releases for PRs and merges with master branch
if: github.event_name == 'pull_request' || github.ref == 'refs/heads/master'
run: echo "TOX_COMMAND=${{ env.TOX_COMMAND }} --pre" >> $GITHUB_ENV

- name: Assert PR is up-to-date
if: github.event_name == 'pull_request'
Expand All @@ -82,35 +82,35 @@ jobs:
- name: Documentation
run: |
tox -e docs
${{ env.TOX_COMMAND }} -e docs
- name: Linters
run: |
tox -e linters
${{ env.TOX_COMMAND }} -e linters
- name: Packaging
run: |
tox -e packaging
${{ env.TOX_COMMAND }} -e packaging
- name: Extras
run: |
tox -e extra
${{ env.TOX_COMMAND }} -e extra
- name: Migrations
run: |
tox -e migrations
${{ env.TOX_COMMAND }} -e migrations
- name: Run entire test suite
if: github.event_name != 'pull_request'
timeout-minutes: 120
run: |
tox -e ${{ matrix.toxenv }}
${{ env.TOX_COMMAND }} -e ${{ matrix.toxenv }}
- name: Unit partial test suite on pull request
if: github.event_name == 'pull_request'
timeout-minutes: 120
run: |
tox -e ${{ matrix.toxenv }}-partial
${{ env.TOX_COMMAND }} -e ${{ matrix.toxenv }}-partial
build:
runs-on: arc-runner
Expand Down

0 comments on commit ab4590f

Please sign in to comment.