-
Notifications
You must be signed in to change notification settings - Fork 5
48 lines (39 loc) · 1.16 KB
/
ci-python-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
name: ci-python-test
# Define the events that trigger the workflow
on:
push:
branches:
- '*'
workflow_dispatch:
# Define the jobs in the workflow
jobs:
python-test:
# Define the type of runner to use
runs-on: ubuntu-latest
# # Define strategy for matrix builds
# strategy:
# matrix:
# # You can change the default value as needed
# python-version: ['3.8', '3.9', '3.10']
steps:
# Step: Check out the repository's code to the runner
- name: checkout-code
uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
# # Step: Set up Python environment
# - name: setup-python-env ${{ matrix.python-version }}
# uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-version }}
# Step: Install project dependencies using pip
- name: Install dependencies
run: |
$CONDA/bin/conda env update --file environment.yml --name base
# Step: Run tests with Pytest
- name: run-tests
run: |
$CONDA/bin/pytest