Skip to content

Commit

Permalink
Merge pull request #57 from pllim/rc-testing
Browse files Browse the repository at this point in the history
TST: Add RC testing workflow and update existing
  • Loading branch information
pllim authored Dec 8, 2022
2 parents fb67f41 + bbc906c commit 2436c9b
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 9 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/ci_workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
initial_check:
name: Mandatory checks before CI
Expand Down Expand Up @@ -44,7 +47,7 @@ jobs:
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Lint with flake8
Expand Down Expand Up @@ -72,9 +75,9 @@ jobs:
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: '3.9'
python-version: '3.10'
- name: Install and build
run: |
python -m pip install --upgrade pip setuptools
Expand All @@ -92,9 +95,9 @@ jobs:
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.11'
- name: Install and build
run: |
python -m pip install --upgrade pip setuptools
Expand All @@ -113,7 +116,7 @@ jobs:
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Install and build
Expand All @@ -138,7 +141,7 @@ jobs:
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install and build
Expand All @@ -156,7 +159,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install and build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
# uses a compiled language

- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
if: matrix.language == 'cpp'
with:
python-version: 3.9
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/predeps_workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: rc-testing

on:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install and build
run: |
python -m pip install --upgrade pip setuptools
python -m pip install numpy astropy --pre
python -m pip install -e .[test]
- name: Run tests
run: pytest

0 comments on commit 2436c9b

Please sign in to comment.