-
Notifications
You must be signed in to change notification settings - Fork 38
47 lines (41 loc) · 1.07 KB
/
main.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
# File used by GitHub Actions
name: build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Test on ${{ matrix.cfg.os }}, Python ${{ matrix.python-version }}
runs-on: ${{ matrix.cfg.os }}
strategy:
fail-fast: false
matrix:
python-version:
- 3.6
- 3.7
- 3.8
- 3.9
cfg:
- os: ubuntu-latest
- os: macOS-latest
steps:
- name: Set up git repository
uses: actions/checkout@v3
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
# More info on options: https://github.com/conda-incubator/setup-miniconda
python-version: ${{ matrix.python-version }}
environment-file: environment.yml
channels: defaults
activate-environment: numerical-methods
auto-update-conda: true
auto-activate-base: false
show-channel-urls: true
- name: Run the project
shell: bash -l {0}
run: python3 main.py