Skip to content

WIP: update ci

WIP: update ci #152

Workflow file for this run

name: ci
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["py38", "py39", "py310", "py311", "py312"]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Build Docker image
run: docker build -t app .
- name: Run pytest inside Docker container
run: |
docker run -v ./:/app -w /app app:latest MILAN_CI_TEST=1 tox -e py${{ matrix.python-version }}
steps:

Check failure on line 31 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 31
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
# - name: Install dependencies
# run: |
# sudo apt-get install -y
# pip install --upgrade setuptools tox
# pip install .[test]
# python -m playwright install-deps
# python -m playwright install
# - name: Run Tox
# env:
# MILAN_CI_TEST: 1
# run: tox -e py
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v4
# with:
# file: ./coverage.xml
- name: Upload artifacts to GitHub
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.python-version }}-artifacts
path: artifacts