Skip to content

Commit 12dc583

Browse files
committed
Merge branch 'meteoswiss-dev' of https://github.com/MeteoSwiss/mwr_raw2l1 into meteoswiss-dev
2 parents c66395c + 07df1dd commit 12dc583

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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/

0 commit comments

Comments
 (0)