File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ # This workflow will install Python dependencies and run tests on different python versions
2+ # more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+ name : CI
5+
6+ on :
7+ push :
8+ branches :
9+ - meteoswiss-metoffice
10+ pull_request :
11+
12+ jobs :
13+ build :
14+ runs-on : ubuntu-latest
15+ strategy :
16+ matrix :
17+ python-version : ['3.7']
18+ steps :
19+ - uses : actions/checkout@v3
20+ - name : Set up python ${{ matrix.python-version }}
21+ uses : actions/setup-python@v4
22+ with :
23+ python-version : ${{ matrix.python-version }}
24+ - name : Display Python version
25+ run : python -c "import sys; print(sys.version)"
26+ # - name: Cache PIP and Poetry
27+ # uses: actions/cache@v2.1.6
28+ # with:
29+ # path: |
30+ # ~/.cache/pip/
31+ # ~/.cache/pypoetry/
32+ # key: pip&poetry-${{ runner.os }}-${{ hashFiles('pyproject.toml') }}
33+ - name : Install poetry
34+ run : |
35+ python -m pip install --upgrade pip
36+ pip install poetry
37+ - name : Install package
38+ run : poetry install --only main
39+ - name : Display installed packages
40+ run : |
41+ poetry env list
42+ poetry show
43+ - name : Run tests
44+ run : poetry run python -m unittest discover tests/
You can’t perform that action at this time.
0 commit comments