Skip to content
Open
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
54 changes: 54 additions & 0 deletions .github/workflows/ci-master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: CI (master)

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

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.10", "3.11"]

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Cache pip
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-

- name: Upgrade pip and install build tools
run: python -m pip install --upgrade pip build

- name: Install package and test deps
run: |
python -m pip install --upgrade pip
pip install -e ".[test]"
# install formatting tools used in CI
python -m pip install black isort

- name: Black format check
run: python -m black --check .

- name: Lint
continue-on-error: true
run: flake8 .

- name: Test
run: |
# Run tests in the tests/ folder explicitly
python -m pytest tests -q
9 changes: 8 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,11 @@ spd_scubesml = "splusdata.scubes.scripts:scubesml"
where = ["."]

# python -m build
# python -m twine upload dist/*
# python -m twine upload dist/*

[project.optional-dependencies]
test = [
"pytest>=7.0,<8",
"flake8>=6.0",
"coverage>=7.0"
]
12 changes: 12 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# requirements.txt gerado a partir de pyproject.toml [project].dependencies
# Use: python -m pip install -r requirements.txt
adss>=1.38
requests
astropy
astroquery
numpy
pandas
scipy
pillow
pyyaml
tqdm
Loading
Loading