-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from simonsobs/dev
Update GitHub Actions workflows
- Loading branch information
Showing
4 changed files
with
94 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,51 @@ | ||
name: Run unit tests with Nextline dev | ||
|
||
# Test with nextline checked out from GitHub (rather than from PyPI) | ||
# coverage won't be run | ||
# coverage won't be run | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
- "**" | ||
pull_request: | ||
branches: | ||
- '**' | ||
- "**" | ||
|
||
jobs: | ||
build: | ||
concurrency: | ||
group: unit-test-dev-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
PYTHONUNBUFFERED: "1" | ||
FORCE_COLOR: "1" | ||
|
||
jobs: | ||
run: | ||
name: Python ${{ matrix.python-version }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ['3.10', '3.11', '3.12'] | ||
python-version: ["3.10", "3.11", "3.12"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pwd | ||
cd .. | ||
git clone https://github.com/simonsobs/nextline.git | ||
python -m pip install -e './nextline' | ||
cd - | ||
python -m pip install -e '.[tests]' | ||
python -m pip list | ||
- name: Test with pytest | ||
run: | | ||
pytest -vv | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install packages | ||
run: | | ||
python -m pip install --upgrade pip | ||
pwd | ||
cd .. | ||
git clone https://github.com/simonsobs/nextline.git | ||
pip install -e './nextline' | ||
cd - | ||
pip install -e '.[tests]' | ||
pip list | ||
- name: Run tests | ||
run: | | ||
pytest -vv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,49 @@ | ||
name: Run unit tests | ||
|
||
# nextline will installed from PyPI | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
- "**" | ||
pull_request: | ||
branches: | ||
- '**' | ||
- "**" | ||
|
||
jobs: | ||
build: | ||
concurrency: | ||
group: unit-test-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
PYTHONUNBUFFERED: "1" | ||
FORCE_COLOR: "1" | ||
|
||
jobs: | ||
run: | ||
name: Python ${{ matrix.python-version }} on Linux | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ['3.10', '3.11', '3.12'] | ||
python-version: ["3.10", "3.11", "3.12"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -e '.[tests]' | ||
python -m pip list | ||
- name: Test with pytest | ||
run: | | ||
pytest -vv --cov --cov-report=xml | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
fail_ci_if_error: true | ||
verbose: true | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install packages | ||
run: | | ||
pip install --upgrade pip | ||
pip install -e '.[tests]' | ||
pip list | ||
- name: Run tests | ||
run: pytest -vv --cov --cov-report=xml | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
fail_ci_if_error: true | ||
verbose: true |