-
Notifications
You must be signed in to change notification settings - Fork 50
63 lines (60 loc) · 1.95 KB
/
Copy pathconda_test.yml
File metadata and controls
63 lines (60 loc) · 1.95 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Run tests with miniforge
on: [push]
jobs:
test:
name: Test ${{ matrix.os }} Py${{ matrix.pyver }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# macos-13 to get Intel
os: ["ubuntu-latest", "windows-latest", "macos-13", "macos-latest"]
pyver: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v6
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
activate-environment: test
miniforge-version: latest
# environment-file: environment.yml
python-version: ${{ matrix.pyver }}
auto-activate-base: false
conda-remove-defaults: true
- name: Setup environment
shell: bash -l {0}
run: |
cd ./py_gnome
echo "Setting up conda environment"
conda install -y python=${{ matrix.pyver }} \
--file conda_requirements.txt \
--file conda_requirements_build.txt \
--file conda_requirements_test.txt \
- name: Build Our Packages
shell: bash -l {0}
run: |
cd ./py_gnome
python -m pip install --no-build-isolation -vv ./
- name: Run pytest
shell: bash -l {0}
run: |
cd ./py_gnome/tests/unit_tests
pytest --runslow
lint:
name: Flake8 linting
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v6
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
activate-environment: test
miniforge-version: latest
python-version: 3.9
auto-activate-base: false
conda-remove-defaults: true
- name: Lint
shell: bash -l {0}
run: |
conda install flake8
python -m flake8 --exit-zero --statistics py_gnome/gnome/