forked from mtusi2026/mtusi2026lab4
35 lines
976 B
YAML
35 lines
976 B
YAML
name: Skeleton contracts
|
|
on: [push, pull_request]
|
|
permissions:
|
|
contents: read
|
|
jobs:
|
|
contracts:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.12'
|
|
- run: python -m pip install -r requirements-dev.txt
|
|
- run: make check validate PYTHON=python
|
|
# This job validates the skeleton, not a student solution.
|
|
# The application job below builds and tests the implemented API separately.
|
|
|
|
application:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 20
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: service/go.mod
|
|
cache-dependency-path: service/go.sum
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.12'
|
|
- run: make check build vet
|
|
- run: make up
|
|
- run: make test test-go test-storage
|
|
- if: always()
|
|
run: make down
|