feat: add support for astropy >=6.1.7<8 dependency in pyproject.yaml #27
Workflow file for this run
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
name: twirl/ci | |
on: | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- "__pycache__" | |
- ".pytest_cache" | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
name: CI/CD Build & Test w/pytest | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python-version: [3.9, 3.10, 3.11, 3.12, 3.13] | |
astropy-version: ["5.1.1", "6.1.7", "7.0"] | |
exclude: | |
# We exclude the combos that won't work with Python 3.9: | |
- python-version: 3.9 | |
astropy-version: "6.1.7" | |
- python-version: 3.9 | |
astropy-version: "7.0" | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
env: | |
PROJECT_NAME: "Twirl" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Environment File | |
run: | | |
touch .env | |
echo PROJECT_NAME=${PROJECT_NAME} >> .env | |
cat .env | |
- name: Docker Compose Build | |
run: | | |
docker compose \ | |
-f docker-compose.yml \ | |
build \ | |
--build-arg INSTALL_DEV="true" \ | |
--build-arg PYTHON_VERSION="${{ matrix.python-version }}" \ | |
--build-arg ASTROPY_VERSION="${{ matrix.astropy-version }}" | |
- name: Run Pytest Suite | |
run: docker compose -f docker-compose.yml run app pytest |