Skip to content

Commit

Permalink
Update django.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquesalice authored Aug 23, 2024
1 parent eb7ec0c commit 93a56a1
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
name: Django CI
# This workflow will install Python dependencies and run unittests with a variety of Python versions

name: ci-django-unittests

on:
push:
branches: [ "main" ]
branches: [main]
pull_request:
branches: [ "main" ]
branches: [main]

jobs:
build:

runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Tests
run: |
serverurl=https://sparc1.datalab.noirlab.edu/ python -m unittest tests.tests_api
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Run unittests
run: |
serverurl=https://sparc1.datalab.noirlab.edu/ python -m unittest tests.tests_api

0 comments on commit 93a56a1

Please sign in to comment.