Skip to content

Add causica devcontainer #115

Add causica devcontainer

Add causica devcontainer #115

Workflow file for this run

name: Causica CI Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
steps:
- uses: actions/checkout@v3
with:
path: "repo"
- uses: actions/setup-python@v2
with:
python-version: "3.9"
- uses: actions/cache@v3
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ hashFiles('repo/poetry.lock') }}
id: cache
- name: Install poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Install dependencies
shell: bash -l {0}
run: |
cd repo
poetry env use 3.9
poetry install
if: steps.cache.outputs.cache-hit != 'true'
- name: Test with pytest
shell: bash -l {0}
run: |
cd repo
poetry run python -m pytest ./test
- name: Create build artifact
shell: bash -l {0}
run: |
cd repo
poetry build
- name: Upload build artifact
# if: github.ref == 'refs/heads/main' # only create artifacts on push to main
uses: actions/upload-artifact@v3
with:
name: Build artifacts
path: ./repo/dist
retention-days: 90