-
Notifications
You must be signed in to change notification settings - Fork 7
60 lines (52 loc) · 1.7 KB
/
forcingprocessor_plotting.yaml
File metadata and controls
60 lines (52 loc) · 1.7 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
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Test Forcing Processor Plotting
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'src/forcingprocessor/**'
- '!src/forcingprocessor/README.md'
- 'pyproject.toml'
- 'setup.cfg'
- '.python-version'
pull_request:
branches:
- main
paths:
- 'src/forcingprocessor/**'
- '!src/forcingprocessor/README.md'
- 'pyproject.toml'
- 'setup.cfg'
- '.python-version'
permissions:
contents: read
jobs:
test-forcingprocessor:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ['3.11']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Configure AWS
run: |
aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }}
aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws configure set region us-east-1
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install pytest
- name: Test with pytest
run: |
python -m pytest -q --tb=short --disable-warnings --maxfail=1 -k test_forcings_plot
python -m pytest -q --tb=short --disable-warnings --maxfail=1 -k test_plotting