Classifier Landmarks test #639
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Classifier Landmarks test | |
on: | |
schedule: | |
- cron: '0 0 1 * *' | |
env: | |
APP_NAME: recognize | |
jobs: | |
classifier: | |
runs-on: ubuntu-latest | |
name: Test classifier landmarks | |
strategy: | |
fail-fast: false | |
matrix: | |
pure-js-mode: ['false'] | |
models: | |
- landmarks_africa | |
- landmarks_asia | |
- landmarks_europe | |
- landmarks_north_america | |
- landmarks_south_america | |
- landmarks_oceania | |
steps: | |
- name: Checkout app | |
uses: actions/checkout@v2 | |
- name: Read package.json node and npm engines version | |
uses: skjnldsv/[email protected] | |
id: versions | |
with: | |
fallbackNode: '^12' | |
fallbackNpm: '^6' | |
- name: Set up node ${{ steps.versions.outputs.nodeVersion }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ steps.versions.outputs.nodeVersion }} | |
- name: Set up npm ${{ steps.versions.outputs.npmVersion }} | |
run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}" | |
- name: Install app | |
run: | | |
make all | |
- name: Run classifier tests | |
env: | |
FLICKR_API_KEY: ${{ secrets.FLICKR_API_KEY }} | |
RECOGNIZE_PUREJS: ${{ matrix.pure-js-mode }} | |
run: | | |
node tests/landmarks-tests.js ${{ matrix.models }} |