-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (39 loc) · 1.26 KB
/
python-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
name: Python Test
on:
push:
branches:
- dev
pull_request:
branches:
- main
- dev
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11']
env:
TEST_DATA_FOLDER: ${{ github.workspace }}/test_data
FTP_MAIN: ftp.bas.ac.uk
FTP_PARTIAL_PATH: rapidkrill/ek60/
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Download FTP Data with wget
run: |
mkdir -p ${{ env.TEST_DATA_FOLDER }}
wget -P ${{ env.TEST_DATA_FOLDER }} ftp://${{ env.FTP_MAIN }}/${{ env.FTP_PARTIAL_PATH }}JR161-D20061118-T010645.raw
wget -P ${{ env.TEST_DATA_FOLDER }} ftp://${{ env.FTP_MAIN }}/${{ env.FTP_PARTIAL_PATH }}JR179-D20080410-T150637.raw
wget -P ${{ env.TEST_DATA_FOLDER }} ftp://${{ env.FTP_MAIN }}/${{ env.FTP_PARTIAL_PATH }}JR230-D20091215-T121917.raw
- name: Run Tests
run: pytest -m "not ignore"