Skip to content

Commit

Permalink
Differentiate between push and pull actions for automated CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzwanenburg committed Mar 26, 2024
1 parent 71fb818 commit af63045
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/auto-test-package_pull.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Run automated tests

on: [push]

jobs:
build:

runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .
python -m pip install .[test]
- name: Test with pytest
run: |
python -m pytest test_auto_ci
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
name: Run automated tests on multiple platforms

on: [push]
# push:
# branches: [ "master" ]
# pull_request:
# branches: [ "master" ]

jobs:
build:
Expand Down

0 comments on commit af63045

Please sign in to comment.