File tree Expand file tree Collapse file tree 1 file changed +58
-0
lines changed
Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Original file line number Diff line number Diff line change 1+ ame : CI
2+
3+ # Controls when the workflow will run
4+ on :
5+ # Triggers the workflow on push or pull request events but only for the main branch
6+ push :
7+ branches : [ main ]
8+ pull_request :
9+ branches : [ main ]
10+ # run 1 time per month (on the 1st day of the month at 6:40 AM) = "40 6 1 * *"
11+ # run 1 time per week on Monday at 6:40 AM = "40 6 * * 1"
12+ schedule :
13+ - cron : " 40 6 * * 1"
14+
15+ # Allows you to run this workflow manually from the Actions tab
16+ workflow_dispatch :
17+
18+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
19+ jobs :
20+ Mambaforge-pytest :
21+ name : Unit-Test (${{ matrix.os }}, Python ${{ matrix.python-version }})
22+ runs-on : ${{ matrix.os }}-latest
23+ strategy :
24+ fail-fast : false
25+ matrix :
26+ python-version : ["3.12"]
27+ os : ["macos", "windows", "ubuntu"]
28+ include :
29+ - os : macos
30+ - environment-file : environment.yml
31+ - os : windows
32+ environment-file : environment.yml
33+ - os : ubuntu
34+ environment-file : environment.yml
35+
36+ steps :
37+ - name : Checkout Branch / Pull Request
38+ uses : actions/checkout@v4
39+
40+ - name : Install Mamba
41+ uses : mamba-org/setup-micromamba@v2
42+ with :
43+ environment-file : ${{ matrix.environment-file }}
44+ python-version : ${{ matrix.python-version }}
45+ use-mamba : true
46+
47+ - shell : bash -l {0}
48+ run : |
49+ pip install .
50+
51+ - shell : bash -l {0}
52+ name : Test (OS -> ${{ matrix.os }} / Python -> ${{ matrix.python-version }})
53+ run : python -m pytest -v --color yes python_github_tutorial/tests --cov
54+ # run: python -m pytest -v --cov=python_github_tutorial --cov-report=xml --cov-append --cov-config=setup.cfg --color yes python_github_tutorial/tests
55+ # echo "tests finished"
56+
57+ # - name: Upload coverage reports to Codecov
58+ # uses: codecov/codecov-action@v3
You can’t perform that action at this time.
0 commit comments