3131 uses : actions/checkout@v2
3232
3333 # Initializes the CodeQL tools for scanning.
34- - name : Initialize CodeQL
34+ - name : Initialize CodeQL
3535 uses : github/codeql-action/init@v1
3636 with :
3737 languages : ${{ matrix.language }}
@@ -40,15 +40,35 @@ jobs:
4040 # Prefix the list here with "+" to use these queries and those in the config file.
4141 # queries: ./path/to/local/query, your-org/your-repo/queries@main
4242
43- - name : Set up Python
44- uses : actions/setup-python@v2
45- with :
46- python-version : ' 3.8'
43+ - name : setup python environment
44+ id : setup-python
45+ uses : actions/setup-python@v2
46+ with :
47+ python-version : " 3.8"
48+
49+ - name : install Poetry
50+ uses : snok/install-poetry@v1
51+ with :
52+ virtualenvs-create : true
53+ virtualenvs-in-project : true
54+ installer-parallel : true
55+
56+ - run : pip install poetry-dynamic-versioning
57+
58+ - name : Load cached venv
59+ id : cached-poetry-dependencies
60+ uses : actions/cache@v2
61+ with :
62+ path : .venv
63+ key : venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
64+
65+ - name : Install dependencies
66+ if : steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
67+ run : poetry install --no-interaction --no-root
68+
69+ - name : install robotcode
70+ run : poetry install --no-interaction
4771
48- - uses : Gr1N/setup-poetry@v7
49- - run : pip3 install poetry-dynamic-versioning
50- - run : poetry install
51- - run : poetry-dynamic-versioning
5272
5373 # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5474 # If this step fails, then you should remove it and run the build manually (see below)
0 commit comments