Skip to content

fix variable reference #9

fix variable reference

fix variable reference #9

Workflow file for this run

name: deltares/rtc-tools
on:
push:
workflow_dispatch:
concurrency:
group: "${{ github.ref }}"
cancel-in-progress: true
# env:
# PYPI_USER: "${{ secrets.PYPI_USER }}"
# PYPI_PASSWORD: "${{ secrets.PYPI_PASSWORD }}"
# CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN}}"
jobs:
# style:
# runs-on: ubuntu-latest
# timeout-minutes: 30
# steps:
# - uses: actions/checkout@v4
# - run: pip install pre-commit
# - run: pre-commit run --all-files --show-diff-on-failure
# build:
# needs: style
# runs-on: ubuntu-latest
# container:
# image: python:3.8
# timeout-minutes: 30
# steps:
# - uses: actions/checkout@v4.1.0
# - run: python setup.py sdist bdist_wheel
# - uses: actions/upload-artifact@v4
# if: success()
# with:
# name: "${{ github.job }}"
# retention-days: 7
# path: dist/
test-linux:
# needs: build
runs-on: ubuntu-latest
container:
image: python:${{ VERSION }}

Check failure on line 43 in .github/workflows/rtc-tools.yml

View workflow run for this annotation

GitHub Actions / deltares/rtc-tools

Invalid workflow file

The workflow is not valid. .github/workflows/rtc-tools.yml (Line: 43, Col: 14): Unrecognized named-value: 'VERSION'. Located at position 1 within expression: VERSION
timeout-minutes: 30
env:
TOXENV: py
strategy:
matrix:
VERSION:
- '3.8'
# - '3.9'
# - '3.10'
# - '3.11'
steps:
- uses: actions/checkout@v4
- run: pip install tox
- run: tox -vv
# coverage:
# needs: test-linux
# runs-on: ubuntu-latest
# container:
# image: python:3.8
# timeout-minutes: 30
# env:
# TOXENV: coverage
# steps:
# - uses: actions/checkout@v4.1.0
# with:
# lfs: true
# - uses: actions/download-artifact@v4.1.0
# - run: pip install tox
# - run: tox -vv
# - run: pip install codecov
# - run: codecov --token=$CODECOV_TOKEN
# examples-linux:
# needs: coverage
# runs-on: ubuntu-latest
# container:
# image: python:${VERSION}
# if: startsWith(github.ref, 'refs/tags')
# timeout-minutes: 30
# env:
# TOXENV: examples
# strategy:
# matrix:
# VERSION:
# - '3.8'
# - '3.9'
# - '3.10'
# - '3.11'
# steps:
# - uses: actions/checkout@v4.1.0
# with:
# lfs: true
# - uses: actions/download-artifact@v4.1.0
# - run: pip install tox
# - run: tox -vv
# deploy:
# needs: examples-linux
# runs-on: ubuntu-latest
# container:
# image: python:3.8
# if: (github.ref == 'refs/heads//^2\..*$/') && !(startsWith(github.ref, 'refs/heads'))
# timeout-minutes: 30
# steps:
# - uses: actions/checkout@v4.1.0
# with:
# lfs: true
# - uses: actions/download-artifact@v4.1.0
# with:
# name: build
# - run: pip install tox
# - run: pip install twine
# - run: twine upload -u $PYPI_USER -p $PYPI_PASSWORD dist/*