Skip to content

fix test name

fix test name #27

Workflow file for this run

name: Test
on:
push:
branches: [ main]
paths:
- '.github/workflows/test.yaml'
- 'requirements*.txt'
- 'src/fit_changedetector/**'
- 'tests/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/test.yaml'
- 'requirements*.txt'
- 'src/fit_changedetector/**'
- 'tests/**'
env:
AWS_ENDPOINT_URL: "https://nrs.objectstore.gov.bc.ca"
AWS_S3_ENDPOINT: "nrs.objectstore.gov.bc.ca"
AWS_VIRTUAL_HOSTING: "FALSE"
AWS_EC2_METADATA_DISABLED: "true"
CPL_VSISTDIN_BUFFER_LIMIT: -1
BUCKET: ${{ secrets.BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
jobs:
test:
runs-on: ubuntu-latest
name: test
container: ghcr.io/bcgov/fit_changedetector:main
environment: production
env:
DEBIAN_FRONTEND: noninteractive
steps:
- uses: actions/checkout@v4
- name: Install with test dependencies
run: |
python -m pip install -e .[test]
- name: Run tests
run: |
python -m pytest -v -rxXs