Skip to content

Commit

Permalink
Faster PR workflows (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcebere authored Mar 23, 2023
1 parent cf0612f commit 88ea244
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 4 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/test_full.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Tests

on:
schedule:
- cron: '4 5 * * 2'

jobs:
Library:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install MacOS dependencies
run: |
brew install libomp
if: ${{ matrix.os == 'macos-latest' }}
- name: Install dependencies
run: |
pip install -r prereq.txt
pip install .
pip install .[testing]
- name: Test with pytest
run: pytest -vvvsx
6 changes: 2 additions & 4 deletions .github/workflows/test.yml → .github/workflows/test_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@ on:
branches: [main, release]
pull_request:
types: [opened, synchronize, reopened]
schedule:
- cron: '4 5 * * 2'

jobs:
Linter:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.8]
python-version: ['3.10']
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
Expand All @@ -39,7 +37,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.10"]
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit 88ea244

Please sign in to comment.