-
Notifications
You must be signed in to change notification settings - Fork 9
61 lines (52 loc) · 1.53 KB
/
binary-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
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Run tests binaries
on:
workflow_dispatch:
push:
branches:
- "main"
- "release/**"
- "pre-releases/**"
pull_request_target:
branches:
- "main"
paths:
- 'pyproject.toml'
- 'conda_environment_binary.yaml'
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-22.04, macos-13, ubuntu-20.04]
runs-on: ${{ matrix.os }}
timeout-minutes: 20
steps:
- name: Check out code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: '1.5.6-0'
micromamba-binary-path: ${{ runner.temp }}/bin/micromamba
environment-file: conda_environment_binary.yaml
environment-name: copernicusmarine-binary
condarc-file: .condarc
cache-environment: true
post-cleanup: 'all'
- name: Build with PyInstaller
shell: micromamba-shell {0}
run: |
make run-using-pyinstaller-${{ matrix.os }}
- name: Standarise name to make the tests easy
shell: micromamba-shell {0}
run:
make change-name-binary
- name: Run tests
env:
COPERNICUSMARINE_SERVICE_USERNAME: ${{ secrets.COPERNICUSMARINE_SERVICE_USERNAME }}
COPERNICUSMARINE_SERVICE_PASSWORD: ${{ secrets.COPERNICUSMARINE_SERVICE_PASSWORD }}
BINARY_NAME: "./copernicusmarine.cli"
shell: micromamba-shell {0}
run: make run-tests-binaries