Skip to content

Commit

Permalink
Merge pull request #319 from zacharyburnett/fix/ci
Browse files Browse the repository at this point in the history
fix `pip install` in CI
  • Loading branch information
mfixstsci authored Aug 21, 2023
2 parents d3ac5eb + afdb619 commit f49b529
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,14 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: ["3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run Tests
run: |
pytest
cache: 'pip'
cache-dependency-path: 'pyproject.toml'
- run: pip install ".[test]"
- run: pytest
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ documentation = "https://pysiaf.readthedocs.io/en/latest/"
repository = "https://github.com/spacetelescope/pysiaf"

[project.optional-dependencies]
test = [
'pytest',
]
docs = [
"stsci_rtd_theme",
"sphinx_automodapi",
Expand All @@ -54,7 +57,6 @@ requires = [
"setuptools>=61.2",
"setuptools_scm[toml]>=3.4",
"wheel",
"oldest-supported-numpy",
]
build-backend = "setuptools.build_meta"

Expand Down

0 comments on commit f49b529

Please sign in to comment.