Skip to content

Merge pull request #13 from astropy/dependabot/github_actions/dot-git… #45

Merge pull request #13 from astropy/dependabot/github_actions/dot-git…

Merge pull request #13 from astropy/dependabot/github_actions/dot-git… #45

Workflow file for this run

name: Tests
on: push
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
if: (github.repository == 'astropy/repo_stats')
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']
steps:
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install test dependencies
run: |
pip install setuptools --upgrade
pip install .[test]
- name: Install package
run: pip install .
- name: Run unit tests
run: |
mkdir -p test-reports
py.test -v --junitxml=test-reports/junit.xml test/*.py