Skip to content

Update main.yml

Update main.yml #527

Workflow file for this run

name: Mocket's CI
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
schedule:
# cron every week on monday
- cron: "0 0 * * 1"
# Cancel in-progress jobs when pushing to the same branch.
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
build:
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', 'pypy3.10']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: |
pyproject.toml
- uses: hoverkraft-tech/[email protected]
with:
compose-file: "./docker-compose.yml"
down-flags: "--remove-orphans"
up-flags: "--no-start"
- name: Install dependencies
run: |
make develop
make services-up
- name: Test
run: |
make test
make services-down
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5

Check failure on line 50 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

You have an error in your yaml syntax on line 50
with:
token: ${{ secrets.CODECOV_TOKEN }}