Untitled
unknown
plain_text
a year ago
1.3 kB
10
Indexable
name: Django CI on: push: branches: [ "main" ] pull_request: branches: [ "main" ] jobs: build: runs-on: ubuntu-latest strategy: max-parallel: 4 matrix: python-version: [3.9, '3.10'] # Include Node version in the strategy if your workflow requires Node.js node-version: ['20'] steps: - uses: actions/checkout@v3 # Setup Python - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v3 with: python-version: ${{ matrix.python-version }} # Setup Node.js - name: Set up Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} # Install Python dependencies - name: Install Dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt # If you have Node.js based steps, add them here # For example, installing npm dependencies or building assets - name: Install npm dependencies run: npm install - name: Build assets run: npm run build # Run Django tests - name: Run Tests run: | python manage.py test
Editor is loading...
Leave a Comment