remove incorrect header: newer versions of werkzeug complain about this, was previously ignored #172
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: publish-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
frontend: | |
name: "Frontend :: node ${{ matrix.node-version }}" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20, 22] | |
defaults: | |
run: | |
working-directory: ./frontend | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "npm" | |
cache-dependency-path: frontend/package-lock.json | |
- run: npm install | |
- run: npm run lint | |
- run: npm run build | |
- run: npm run test:unit:ci | |
# todo: these e2e tests are not generating coverage reports on CI: | |
- run: DEBUG=cypress:* npm run test:e2e:ci | |
- uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./frontend/coverage/coverage-final.json | |
name: ${{ matrix.node-version }} | |
fail_ci_if_error: true | |
verbose: true | |
backend: | |
runs-on: ubuntu-latest | |
name: "Backend :: Python ${{ matrix.python-version }}" | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11", "3.12"] | |
defaults: | |
run: | |
working-directory: ./backend | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- run: pip install -e .[tests] | |
- run: python -m pytest --cov=sample_flow_server --cov-report=xml -v | |
- run: | | |
openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -sha256 -days 365 -nodes -subj '/CN=localhost' | |
sample_flow_server --help | |
timeout 5 sample_flow_server || [ "$?" -eq 124 ] | |
- uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./backend/coverage.xml | |
name: ${{ matrix.python-version }} | |
fail_ci_if_error: true | |
verbose: true | |
docker: | |
runs-on: ubuntu-latest | |
name: "Docker" | |
steps: | |
- uses: actions/checkout@v4 | |
- run: echo "VITE_REST_API_LOCATION=https://circuitseq.iwr.uni-heidelberg.de/api" > frontend/.env | |
- run: docker compose build | |
- uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
- run: | | |
echo $SAMPLE_FLOW_DOCKER_IMAGE_TAG | |
docker compose build | |
docker compose push | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
env: | |
SAMPLE_FLOW_DOCKER_IMAGE_TAG: ${{ github.sha }} | |
- run: | | |
echo $SAMPLE_FLOW_DOCKER_IMAGE_TAG | |
docker compose build | |
docker compose push | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
env: | |
SAMPLE_FLOW_DOCKER_IMAGE_TAG: "latest" |