init: use new template #15
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
# This workflow will install Python dependencies, run pytests and run notebooks | ||
# then it will in python 3.9 (ubuntu-latest) create a badge with the coverage | ||
# and add it to the PR. This badge will be updated if the PR is updated. | ||
name: Tests | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
jobs: | ||
build-and-test: | ||
concurrency: | ||
group: "${{ github.workflow }} @ ${{ github.ref }}" | ||
cancel-in-progress: true | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout (GitHub) | ||
uses: actions/checkout@v3 | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ {{ cookiecutter.github_user }} }} | ||
Check failure on line 26 in .github/workflows/tests.yml GitHub Actions / TestsInvalid workflow file
|
||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Pre-build dev container image | ||
uses: devcontainers/[email protected] | ||
with: | ||
imageName: ghcr.io/{{ cookiecutter.github_user }}/{{ cookiecutter.github_repo }}-devcontainer | ||
cacheFrom: ghcr.io/{{ cookiecutter.github_user }}/{{ cookiecutter.github_repo }}-devcontainer:latest | ||
push: filter | ||
refFilterForPush: refs/heads/main | ||
runCmd: | ||
make validate |