-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (30 loc) · 977 Bytes
/
tests.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
name: Run tests
on:
pull_request_target:
branches:
- "release/**"
- "pre-releases/**"
jobs:
tests:
runs-on: self-hosted
timeout-minutes: 30
steps:
- name: Check out code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: '1.5.6-0'
micromamba-binary-path: ${{ runner.temp }}/bin/micromamba
environment-file: conda_environment_test.yaml
environment-name: copernicusmarine_test
condarc-file: .condarc
cache-environment: true
post-cleanup: 'all'
- name: Run tests
env:
COPERNICUSMARINE_SERVICE_USERNAME: ${{ secrets.COPERNICUSMARINE_SERVICE_USERNAME }}
COPERNICUSMARINE_SERVICE_PASSWORD: ${{ secrets.COPERNICUSMARINE_SERVICE_PASSWORD }}
run: make run-tests
shell: micromamba-shell {0}