Skip to content

CI: run nightly tests only on main #569

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/optional.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: 'Optional'

on:
push:
branches:
- main
workflow_dispatch:

jobs:
nightly:
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v3

- name: Install project dependencies
uses: ./.github/setup
with:
os: ubuntu-latest
python-version: '3.10'

- name: Run pytest (against pandas nightly)
run: poetry run poe pytest --nightly

mypy_nightly:
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v3

- name: Install project dependencies
uses: ./.github/setup
with:
os: ubuntu-latest
python-version: '3.10'

- name: Run mypy tests with mypy nightly
run: poetry run poe mypy --mypy_nightly
43 changes: 5 additions & 38 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
name: 'Test'

on:
[push, pull_request, workflow_dispatch]
push:
branches:
- main
pull_request:
workflow_dispatch:

env:
MPLBACKEND: 'Agg'
Expand All @@ -25,11 +29,6 @@ jobs:
os: ${{ matrix.os }}
python-version: ${{ matrix.python-version }}

- name: Show poetry python location (Windows)
shell: pwsh
run: poetry run where python
if: matrix.os == 'windows-latest'

- name: Run mypy on 'tests' (using the local stubs) and on the local stubs
run: poetry run poe mypy

Expand All @@ -42,22 +41,6 @@ jobs:
- name: Install pandas-stubs and run tests on the installed stubs
run: poetry run poe test_dist

nightly:
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v3

- name: Install project dependencies
uses: ./.github/setup
with:
os: ubuntu-latest
python-version: '3.10'

- name: Run pytest (against pandas nightly)
run: poetry run poe pytest --nightly

precommit:
runs-on: ubuntu-latest
timeout-minutes: 10
Expand All @@ -66,19 +49,3 @@ jobs:
- uses: actions/checkout@v3

- uses: pre-commit/action@v3.0.0

mypy_nightly:
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v3

- name: Install project dependencies
uses: ./.github/setup
with:
os: ubuntu-latest
python-version: '3.10'

- name: Run mypy tests with mypy nightly
run: poetry run poe mypy --mypy_nightly